A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a blog.

learn more… | top users | synonyms (2)

1
vote
2answers
1k views

How to check if a theme is active?

I'd like to be able to check if the twentytwelve theme is active. I know if I was checking for an active plugin I'd do something like: $active_plugins = apply_filters( 'active_plugins', get_option( ...
1
vote
1answer
387 views

Question about the way that wp_register_script works

Ok so I'm using the Roots Theme for WordPress (https://github.com/retlehs/roots), which, is sort of a starter theme or theme framework. I'm confused about the way that it deregisters the WordPress ...
1
vote
2answers
242 views

Is wordpress big enough for my project

I have a site some having job postings running using jobber base. Now I am going to shift it in WP using jobroller theme that is of 99 USD. I am a developer who always like MVC rather than these CMS. ...
1
vote
2answers
232 views

How can I create an “excerpt” with text that won't be displayed in the post itself?

I'm currently creating a new theme for my blog and I intend to make it in a magazine style manner. So, to clarify the question in the title: what I want to do is to create a text assigned to the ...
1
vote
2answers
13k views

How do I make the category template display full posts instead of partial posts?

I'm using Wordpress 3.0.1 with the Twenty Ten theme. I'm trying to change the way the posts in the Category view are displayed (i.e. by going to a url like mywebsite.com/category/mycategory). ...
1
vote
3answers
525 views

Why doesn't wp_enqueue_script() work when including a JavaScript file with TEMPLATEPATH?

I am trying to use tips from here to add my JS file. I put the following in the functions.php of atahualpa theme I've got installed function lektor_init() { if (true) { ...
1
vote
2answers
654 views

Load a theme based on browser detection

Ok I know browser detection is considered bad practice but I can't find a way around it because I really do need whole different themes for a complex site. So I snatched this function from ...
1
vote
3answers
105 views

Why is Wordpress asking me to update my new (virtually blank) theme?

I have just setup a new custom theme with little/no data and yet Wordpress has made an update notice about upgrading it to "1.0.1" and I cannot for the life of my work out why. I have stripped down ...
1
vote
3answers
1k views

WordPress Theme activation hook?

I know the many tricks to see if said theme is activated, I have scoured the internet. I am not looking for re-pasting of that code. What I am looking for though is weather or not 3.3-3.5 released a ...
1
vote
2answers
67 views

Is it acceptable to build functionality into a theme built for a client? [closed]

I know it's now the common wisdom to not build functionality into themes, as advised by WordPress, Envato, and others. This includes the likes of content types, taxonomies, sliders, shortcodes etc, to ...
1
vote
2answers
619 views

How to tell a theme to use different .mo and .po files?

I have a theme which loads .po and .mo files to display strings in English. I want to have only one language (Polish), but those two files are en_US. I tried replacing content in the en_US.po file but ...
1
vote
1answer
1k views

How to correctly add JQuery in a WP theme?

I am pretty new in WordPress and I have the following doubt: I have to include JQuery into a theme and I am doing in this way: I create the following function into functions.php theme file and I add ...
1
vote
3answers
2k views

Find proper “text domain” within theme

I have a client with a wordpress theme, Nevada, and we are having trouble making the built in translations work for it. The theme contains .mo files for English, German, and Slovenian, and appear to ...
1
vote
2answers
2k views

Theme Activation, Create Database Tables

I have been tasked with creating a theme that will be a base to list the site owners ebay store products. I have fleshed most of the project out in plain old php to get everything working as regards ...
1
vote
3answers
4k views

How to remove header image on subpages in Twenty Eleven (default theme)?

I'd like to remove the header image on all the pages except my "home"-page. Any ideas? Thks
1
vote
2answers
2k views

Unwanted blank lines before <html> tag

I've a strange problem with an Autofocus theme. In my templates file, header.php, I've a code like this (and is correct) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
1
vote
2answers
3k views

How can I get the title attribute from get_the_post_thumbnail()?

In my theme I want to display the featured image, but I also want to display the title attribute (of the image, not of the post/page) beside the image itself. Is there a simple way to do this? Where ...
1
vote
2answers
2k views

Front End Post Submit Form

I'm working on a site that is going to be community powered. It's going to have the form for registered users to submit draft posts, which will then be approved or deleted by the site's editors. The ...
1
vote
1answer
293 views

How do I remove twentyten without ruining what I did?

I created a blog with the twenty ten theme. I understand there are issues with upgrading WP with this default theme. It overwrites what you did. Is there a way to fix this with starting over. How ...
1
vote
1answer
485 views

Are there any 'Coming Soon' themes for Wordpress 3.0?

I have a website I am starting to build on Wordpress, but I want a placeholder theme to put up while I develop the theme. I had some links to some good "Coming Soon" themes for 2.X, but I lost them. ...
1
vote
2answers
38 views

Overwriting templates in child theme and performance

Is it bad for performance to overwrite custom templates in the child theme? For example: I have a template called single-music.php in my parent theme. I have put single-music.php in the child theme ...
1
vote
2answers
173 views

Specific theme for non logged in users

I want to make an specific theme for non logged in users, but I don´t know how to make the function or plugin to shift the theme for them, and left another specific theme for logged in users. Anyone ...
1
vote
2answers
273 views

Renaming the Twenty Fourteen Wordpress theme

I know the benefits of creating child themes, but it in my case I really would like to create a theme based upon another one without any dependencies to a parent theme. I tried to use a sed command to ...
1
vote
3answers
131 views

Some doubts about how to show posts in a custom theme?

I am pretty new in WordPress theme development and I have some doubt about this WP function used to show my post in the homepage: <?php if ( have_posts() ) : // Start the ...
1
vote
1answer
72 views

What tags should be used for themes to show the type of layout?

In the Tag Filter the old tags 'fixed-width' and 'flexible-width' were renamed to 'fixed-layout' and 'fluid-layout'. Also new 'responsive-layout' tag appears. Should users duplicate new tag ...
1
vote
1answer
816 views

Why are my widgets not saving when being added to a sidebar?

The following is in my function.php file. I see the sidebar in my Appearance > Widgets page but whenever I drag something on over the sidebar and save it just disappears once I leave the admin ...
1
vote
1answer
3k views

add_action in functions.php, do_action in plugin?

I am trying to set an add_action function in my currently active WordPress theme functions.php file, for a defined do_action function within an activated WordPress plugin. The add_action function in ...
1
vote
3answers
1k views

Download WordPress.com theme: how?

I like this theme. But I don't want it to use with a wordpress.com blog but download it to use with my WordPress site at my own domain. But I can't find a download link. Is it possible?
1
vote
2answers
2k views

hfeed CSS class in Twentyeleven Theme

The twentyeleven theme has hfeed class attached with the main container #page. I could not find any definition of hfeed in style.css. Does it have any purpose or its just a random class name given?
1
vote
1answer
2k views

Working with an Array inside Your Theme Options Array - Multiple Values

I apologize if this is covered extensively elsewhere, I'm not sure how to phrase my searches on the topic. Basically, instead of the following standard code to store data in WP-options... $options = ...
1
vote
2answers
212 views

Themes—Child Themes

I apologize if this is a very basic question, but I am very new to working with Wordpress. I'm looking into using Wordpress as a CMS for a new site I'm building but I'm not sure I understand some of ...
1
vote
1answer
69 views

Protect changes made to the theme when updating

I customized the wordpress theme I'm using by changing php, css and even a js file. Is there a way to protect these changes, when updating the theme to a new version?
1
vote
3answers
1k views

How to change sidebar per page?

I am new to theming with wordpress. I have a theme layout with one sidebar at the right side of the website. Now on my homepage and one other page i dont want to have the sidebar. On all other pages ...
1
vote
4answers
585 views

Wordpress Theme for Video Showcase [closed]

Does anyone know of a good theme for showcasing multiple Youtube videos? Thanks!
1
vote
2answers
122 views

How can you showcase various premium themes to clients without having to pre-purchase the theme?

If you use a premium theme service (my skills lie more in coding than artwork), what is a good way to show clients examples of what themes are available to them, without sending them to the theme ...
1
vote
2answers
91 views

Why use while over if in single wordpress posts?

Why is while() used instead of say if() here: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'single' ); ?> <?php ...
1
vote
1answer
101 views

Same theme name issue with wordpress repository theme

I created new theme with name for example XYZ. its good till now but the issue comes before few days. Wordpress repository has a theme with same name as my theme's name. Now the issue is when the ...
1
vote
3answers
863 views

How to remove a file included in parent theme with locate_template() via child theme?

In my theme I use locate_template() to load the various parts of my functions library. I'm looking for a way to not include one of those files when using a child theme. I tried adding ...
1
vote
2answers
333 views

Child-theme breaks site

So, I have a child-theme with nothing but the required CSS file in it. Once I activated this child-theme my entire site is down. I end up with 2 questions: How can activating a child-theme with ...
1
vote
1answer
150 views

Theme Check: Could not find post_class

I've inherited a theme from a another developer that I've re-styled for a client. We're just about finished, but I thought I'd run it through the Theme-Check plug-in to see if there's any errors or ...
1
vote
4answers
3k views

Confit theme on Wordpress.org

I'm a fairly new user of wordpress.org. I have a wordpress.com site using the Confit theme and wish to transfer it to .org. I exported the site from .com and into imported to .org successfully, only ...
1
vote
1answer
690 views

How to put a banner ad between post 1 and post 2 on homepage only

Wordpress Swift Theme is installed on my My site http://tech-ticks.info From last few days, I am trying to find a solution to put an ad banner on homepage only between post1 and post 2. I have ...
1
vote
1answer
225 views

How can I list recent posts excerpts?

I am using this directly from the codex to list 3 recent articles titles. <ul> <?php $args = array( 'numberposts' => '3'); $recent_posts = wp_get_recent_posts( $args ); foreach( ...
1
vote
1answer
291 views

How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)

I've created my own theme based on a very lean template. My theme is not parsing the [caption]...[/caption] markup to the correct html. It's just showing the text without any markup around it. Here ...
1
vote
1answer
1k views

Creating a rotating header /image slider using theme customization

So I'm learning WP and I want to create a rotating image slider for the header (like in this) using Theme Customization API. But I can't figure out how to and what setting should I use to take the ...
1
vote
1answer
340 views

Changing the template hierarchy

Is there an easy way to change the WP default template hierarchy? For instance; Say I want to change my theme directory structure so that it completely changes from the Template Hierarchy suggested ...
1
vote
2answers
85 views

Which themes do you use to test compatibilities with your plugin [closed]

When developing a plugin, I usually test it with the following themes before public release: TwentyTen by Automattic TwentyEleven by Automattic Coraline by Automattic Duster by Automattic Hybrid by ...
1
vote
1answer
3k views

file_get_contents Not allowed in Themes?

I'm using file_get_contents in a theme development (in a widget of the theme). However the theme check plugin gives me following warning: WARNING: file_get_contents was found in the file file.php ...
1
vote
1answer
587 views

Change Default Image HTML

I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images <a ...
1
vote
1answer
407 views

How to set different settings for a mobile theme?

My desktop version of wordpress theme requires using a 'static' page as the start page as it has custom shortcodes etc. While this is good, when it comes to my mobile theme, sadly the 'static' page ...