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)

90
votes
9answers
11k views

Tips for using WordPress as a CMS? [closed]

I want to use WordPress as a CMS for a reasonably basic site rather than a blog. I have several pages and at the moment, I don't intend to have a "news" page. While there are ways to make this work, ...
53
votes
11answers
9k views

WordPress frameworks and parent themes [closed]

By now there is a considerable amount of WordPress code around that is meant to be re-used by other developers. Unfortunately there is little to none practical and solid information on it and ...
34
votes
3answers
2k views

Opinions and recommendations on the best barebones base theme [closed]

Preamble I'm finding myself building more and more WP sites "from scratch" as it were (ie: ignoring any theme designs out there and just creating a design wireframe purely on the needs of the client. ...
23
votes
17answers
2k views

Where can I download WordPress themes from? [closed]

What sites offer WordPress themes to download? (Can be paid-for or free) It's community wiki so if we had one site per answer, and with a little additional detail on each site, what sort of themes ...
23
votes
6answers
3k views

Using OOP in themes

I see a lot of plugins making use of object-oriented coding when there isn't really necessary. But what's even worse is that theme developers are starting to do the same thing. Commercial themes and ...
18
votes
13answers
1k views

What Are Security Best Practices for WordPress Plugins and Themes? [closed]

As suggested in this question, I am adding this topic as a new question, for community discussion/voting regarding best-practices for Plugin/Theme security. Here is the starting checklist, based on ...
14
votes
7answers
2k views

Where can I sell WordPress themes and plugins? [closed]

I've been building some WordPress themes and plugins. What are the online marketplaces I can sell them?
14
votes
2answers
4k views

Adding an Arbitrary Link to the Admin Menu?

Is there a way to add a arbitrary hyperlink to the WordPress admin menu (I mean the menu on the left when you log into the admin dashboard)? For example, can one add a link to Google? In my ...
13
votes
3answers
8k views

What are all the available parameters for query_posts?

The WordPress codex page for query_posts states that it does not cover all the parameters which query_posts takes: Parameters This is not an exhaustive list yet. It is meant to show some of ...
12
votes
6answers
2k views

How do I turn off self-closing tags for markup in WordPress (for HTML5, or HTML4, for example)?

I want to use HTML5 in my WordPress theme, how do I turn off wptexturize? I don't mind WP adding breaks, but I want them to be <br> and not <br />. How do I get control over how those ...
12
votes
3answers
2k views

Customizing a WordPress theme without changing it?

I have found and downloaded a theme. However I want to tweak the CSS some to change the design, colours etc. a bit. How should I go about doing this, while still being able to update the theme without ...
11
votes
8answers
1k views

Where can I learn to create my own theme?

I want to learn how to create a theme for WordPress. Where can I find information and resources on how to do it?
11
votes
3answers
1k views

get_template_part vs action hooks in themes

It seems to me both of these afford the opportunity for the end user to modify a theme without actually editing the themes files (via child themes). My question is, is one method preferred over the ...
11
votes
3answers
2k views

What is the role and history of the $content_width global variable?

I just stumbled over a global variable called $content_width. It was new to me, so far I could see that it's used in themes, both the standard twenty ten one and third party ones. It looks like that ...
11
votes
3answers
479 views

Wordpress API Menu/Submenu Order

I'm developing a child-theme using Wordpress 3.4.2 and the development version of the Options Framework by David Price. This is my first theme and I'm relatively new to this, so I've had a look into ...
10
votes
12answers
2k views

Is there a blank theme framework compatible with WP 3.0?

I don't feel like making my own theme from scratch, so I looked for some theme frameworks, but they're all old and when I install them on WP 3.0 they produce loads of errors and don't behave properly. ...
10
votes
3answers
2k views

Adding admin-ajax.php to the frontend. Good or bad idea?

I love admin-ajax.php. But I hate having to localize in order to point frontend scripts to it, and I wish there was an equivalent, easy-to-find file for themes. (It also just bothers me to see ...
10
votes
4answers
517 views

How to maintain W3C standards compliance of a theme

When I wrote a theme, I made sure it was compliant with XHTML 1.1 and CSS 2.1. Then I added plugins and the theme is no longer compliant with XHTMl 1.1. Then I used Google API font in my CSS and it is ...
10
votes
3answers
854 views

Allow user to select a theme to install when they signup

Is it possible to allow a user to select which theme they would like installed from the new site signup page? And once the site is created, it obviously installs whichever theme they chose. I found ...
9
votes
2answers
5k views

How to Link External jQuery/Javascript files with WordPress

So I'm using Starkers to base my next WP theme on and I've run into a small issue, I was including my own version of jQuery in the header.php file but when inspecting my site using Firebug I noticed ...
9
votes
4answers
1k views

after_setup_theme always runs

I am setting up a child theme for some of my faculty members, and as a part of the theme, I would like a handful of plugins to be activated at the time that the theme is activated. So, naturally, I ...
8
votes
3answers
397 views

Starter Theme vs Parent Theme? Pros and cons

I'm building a theme to be used as an example for other websites for the company I'm working. In another project we used the Hybrid Parent Theme and was really easy to build, but REALLY hard to ...
8
votes
2answers
150 views

How do I exclude plugins from getting automatically updated?

There is an opt-in filter that allows all plugins on my site to receive automatic updates: add_filter( 'auto_update_plugin', '__return_true' ); I like this feature, but I don't want all my plugins ...
8
votes
1answer
2k views

Using classes instead of global functions in functions.php

In many themes I've seen (including TwentyEleven) and in the examples I've found online, when building the functions.php file for a theme all functionality is declared in a global scope. To clarify, ...
7
votes
3answers
524 views

Am I allowed to license my Wordpress theme under the aGPL

I was interested in the recent conversation about whether WordPress themes need to be licenced under the GPL or whether they can be closed source. The video can be reached from matts blog and my ...
7
votes
3answers
5k views

How can I allow the Editor Role to change Theme Settings?

I've just setup a new Blog for a friend and thought it's better to not give him Administrator Access right away as a pre-caution. I created a new user as Editor therefore. But then I saw that this ...
7
votes
5answers
6k views

Can wordpress theme folder name be changed freely and nothing technically happens

Can the wordpress theme folder be renamed any time freely and everything works fine after that , themes/oldthemename themes/whatevernewname or is it so that if you change the folder name that ...
7
votes
1answer
2k views

Custom Post Type Templates from Plugin Folder?

I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
7
votes
1answer
140 views

Shared functionality in plugins and themes

I recently started to develop plugins and themes and I found that I need to use several functions of on both. Sometime I think about to check if function / class exist before declared as said on this ...
7
votes
1answer
446 views

Experiences with adding Nonces to the comment form

I was wondering about the impact nonces would have on the default comment form a theme has. Because Nonces are a built-in feature of WordPress I thought about giving it a try. Does somebody has ...
7
votes
3answers
1k views

How can I create a bash install script for my Wordpress sites setup (WP+plugins+theme)?

I build a lot of websites with Wordpress, and my initial setup is basically always the same : Latest version of WP Latest versions of about 5 plugins My naked development theme Instead of ...
6
votes
3answers
1k views

CSS classes for theme

Does anybody know predefined (suggested by WP) CSS classes which should I use in my theme? I have seen somewhere in Internet a list of all CSS classes, which are used in WP theme, but can't find it. ...
6
votes
4answers
2k views

What does exactly GPL license mean for my WordPress theme?

To put it like this: I have created a WordPress theme for myself which consists of the following: PHP code - GPL v2 licensed like WordPress CSS files - All rights reserved JS files - All rights ...
6
votes
4answers
183 views

Do I actually need to link my theme's style.css in the theme files

So I am developing a wordpress theme using a series of LESS files for the CSS. These compile using codekit to a combined and minifed stylesheet that I use for the theme's styling. I understand a ...
6
votes
2answers
203 views

Categorising themes by folders in backend

I want to organize themes like: wp-content/themes/themeshop/theme1 wp-content/themes/themeshop/theme2 wp-content/themes/themeshop/theme3 Now from my understanding, this organization works ...
6
votes
4answers
2k views

W3 Total Cache, CDN and theme files

I updated the style.css file of my WordPress installation recently. The change were effective: when logged in as an administrator (my blog is set so that the administrator is never served a cached ...
6
votes
4answers
929 views

How do I white label my self-hosted site created by wordpress?

I have seen code in an answer to this question, how to remove the promotional back link to WordPress.org in my theme. I have added this to my theme's CSS but there is no change. Am I missing see ...
6
votes
2answers
546 views

Do Child-Themes automatically load the Translation from the Parent-Theme?

Is it enough to just create a child-theme - let's say technically without adding anything else but the bare minimum style.css - to have the translation of the parent-theme being used automatically for ...
6
votes
1answer
376 views

Create theme files for plugin

Basically I've made a plugin to create a new post type (event). Now I want to create a single-event.php layout file. I don't want to have to stick it in the theme folder, I want to put it into my ...
5
votes
7answers
6k views

How can I version the main CSS file?

How can I instruct wordpress to use a filename other than 'styles.css' for my main stylesheet - for example, styles-1.css? I'd like to do this for versioning and caching purposes.
5
votes
2answers
6k views

Disable plugin / plugin action via theme

I have installed the Google Analyticator plugin on my site. I am also using the MobilePress plugin to serve up a theme designed for non-smart-phone mobile browsers. I have set up Google Analytics for ...
5
votes
6answers
1k views

What Wordpress E-Commerce theme should I use to get started?

I've done created a LOT of Wordpress themes and plugins, but I haven't done much with the Wordpress E-Commerce plugin. If someone asked me what theme they should start playing with to learn about ...
5
votes
1answer
172 views

What is meant by __('page','twentytwelve')

I'm using twentytwelve theme with 1.0 version. I saw many codes like following, 'name' = __('page','twentytwelve'); If I give, 'name' = 'page'; It's also working fine. Then why using __()? What ...
5
votes
4answers
445 views

How to create a new theme from scratch?

I'm new to WordPress. Which steps would I need to do, to get my new design implemented as a WordPress theme?
5
votes
5answers
376 views

what the best way to include images from the template's images folder?

what the best way to include images from the template's images folder? is it by using get_bloginfo('template_url')? I understood that its better to hard code the path to the images folder since this ...
5
votes
1answer
816 views

Free/Open-Source Theme Frameworks as an Alternate to Thesis?

What good free and open source alternatives exist to the Thesis theme ??
5
votes
2answers
6k views

Adding Language Support using .pot and .mo files to a WordPress Theme?

How do we add language support using .pot and .mo files in a WordPress theme? And how we retrieve the theme?
5
votes
2answers
527 views

Are the wordpress Core css styles really all nessasary?

On WordPress Codex there are this CSS styles listed, its a quite big list of styles but it seems they are doubled unnecessary. It says: Each Theme should have these or similar styles in its ...
5
votes
4answers
5k views

Dynamic template serving, change theme_root using add_filter from current theme

Some plugins use the 'template', 'option_template' and 'option_stylesheet' to dynamically serve (alternative) wordpress templates. For example, Nathan Rice's ServeDefaultToIESix. For Example - ...
5
votes
1answer
197 views

Why doesn't default Wordpress page view use force_balance_tags?

I noticed that the default WP theme uses force_balance_tags for listing posts' excerpts. This way, it doesn't cause major html breakage whenever someone writes a post like <div><b>This is ...