Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Themes

NOTE

If anyone has ideas on how to improve themes and theme management in WordPress, then log your idea as an enhancement request on the bug tracker. The devs do not cruise Codex to find suggestions and ideas made by users.

--NuclearMoose 08:33, 4 Jan 2005 (GMT)



I think we need two pages on themes, one for devs (this one) and one for the regular folks. I think this should be named "Theme Development" and the regular people page can just be called "Themes" matt 06:55, 17 Nov 2004 (UTC)

I agree, that sounds great.

Carthik 06:58, 17 Nov 2004 (UTC)
Oh man, this page has lots of great information but is currently pretty unhelpful. I'd like to make two more pages: Theme Development and Theme Gallery/List of Themes/Something like that (the latter can start on this page and move later, especially considering that particular themes are being given their own flavours already and hence the list is likely to be long.) Should I go ahead? Not sure what the etiquette is around here, just started using the codex... (actually, maybe renaming this is smarter. Rename to theme development please..)
--Firas 07:55, 24 Dec 2004 (GMT)
Glad to have you aboard, Firas! I'd vote for renaming this to "Creating a Theme," but I'm not sure we'd need separate pages for "Themes" (general end-user information about themes) and "List of Themes" (a list of all available themes). If those two can be combined into "Themes," I'd be all for it. See Plugins, which briefly describes plugins for end-users, lists all available plugins, and refers the user to instructions for managing and creating plugins.
morganiq 11:57, 24 Dec 2004 (GMT)

There isn't a feed.php template. wp-blog-header.php loads wp-feed.php which just includes the appropriate feed file. --Ryan 08:04, 17 Nov 2004 (UTC)

I removed feed.php from the list of query-based templates. Thanks Ryan.

Carthik 12:47, 17 Nov 2004 (UTC)

Perhaps Wordpress should move the default theme to the themes directory as well so to remove clutter in the root of the blog. It would also help people see how useful the themes function is compared to dropping stuff in the root directory.

noderat 21:40, 20 Nov 2004 (UTC)
+1 on moving default to themes shelley 16:46, 21 Nov 2004 (UTC)
I think this is an essential step - and helps the users and the theme developers suls 10:25, 2 Dec 2004 (CET)

Grr... That last edit (146.145.52.105) was mine. --Ringmaster 14:29, 23 Nov 2004 (UTC)

What's about a theme.xml file where the theme is described and all dependecies are written? --suls 09:45, 01 Dec 2004 (CET)

That would be adding unneccasary cruft, in my opinion
Carthik 23:36, 1 Dec 2004 (UTC)

Theme Download Page

I think we should have an area where all the downloadable themes for Wordpress can be accessed from one location. Like a mini supermarket of themes :)

Once we have a sizeable number of themes, I am sure we can have a page with links to the themes.
Carthik 23:36, 1 Dec 2004 (UTC)

Can we make it easier to use images with themes?

I've run into a problem where I'm trying to display small inline images along with the feedback division, and hardcoding <img src="wp-content/themes/theThemeName/images/theImage.gif" alt="" /> doesn't seem like the way to approach this.

Also, replacing "wp-content/themes/theThemeName/" with bloginfo('template_url') seems like a lot of unneeded hits to the database.

$template_url = bloginfo('template_url') . '/images/'; doesn't work because it echos the path, and the variable turns out as "http://www.mydomain.com/wp-content/themes/theThemeName /images/"

get_template_directory() can't be used because it returns an absolute path.

I'd like to see a constant at some point similar to ABSPATH for the path to the images.

maybeithink2much 6:48, 3 Dec 2004 (UTC)
One of the three methods you have outlined above is fine, don't worry about the load on the database. The problem with a constant like you describe is that there will need to be many for different themes, and different theme authors will want to store and organize the images they use in different dirs. Also please leave your signature, so we know who's commenting...
Carthik 23:36, 1 Dec 2004 (UTC)
Instead of using bloginfo('template_url') use get_bloginfo('template_url'). get_bloginfo() returns, and bloginfo() echos.
--Ringmaster 05:25, 4 Jan 2005 (GMT)