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)

2
votes
3answers
1k views

Multisite: setting theme and options when a new blog is created

When a new blog is created in a WP Multisite instance I want to be able to set the default theme and configuration options create 2 menus (main and secondary) and associate them with the 2 slots ...
2
votes
1answer
916 views

How to make alert for new version on theme options?

Let say my theme host on my server. User download my theme and use it. Now I want notify @ alert for new version of my theme. Example to show "New version has been release. Please download at ..." ...
2
votes
2answers
5k views

Changing the visible url path to css & js files

Does anyone happen to know how I can automatically turn: http://www.domain-name.com/wp-content/themes/theme-name/css/stylesheeet.css into http://www.domain-name.com/css/stylesheet.css Naturally I ...
2
votes
2answers
113 views

How to set two different themes on one WordPress? (Desktop vs. Mobile)

I created two WordPress themes. First for the Desktop and second for tablet/mobile. I want to set on one URL. When the website opens, the theme should change automatically based on resolution.
2
votes
1answer
225 views

Best practice way to implement custom sections into a WordPress theme

I'm having trouble figuring out the best way to implement custom sections in a WordPress theme. For example I'm making a theme that will have four featured sections on the homepage. These sections ...
2
votes
1answer
66 views

How to highlight the current page in the nav menu?

I'm customizing a WordPress theme for my school, and I'm a bit annoyed by the fact that the current page in the nav menu is not indicated. For example: You can clearly see that I'm hovering over a ...
2
votes
2answers
317 views

How do you change the theme location?

To change the upload directory I have to do this: define ( "upload", "<new upload location>" ); How can you change the themes location? I like to create a folder themes in the root directory. ...
2
votes
3answers
5k views

Different template of products for specific category. WooCommerce

For example i have category coffee machines, and one template for coffee machine single product template, but for category coffee i want to have different single-product.php template, how to implement ...
2
votes
1answer
60 views

What page should I use for a contact form?

I want to make a theme with an about page and a contact form, Should I make a custom page meant specifically for it? (the blog is ment for mobile and I'm not looking for most flexibility, the page ...
2
votes
2answers
506 views

Hide a theme on list of themes in wp-admin without editing core files

I'm running a multisite network with 200+ themes installed and activated. Is there a way to manipulate the list of available themes in wp-admin so that certain theme does not appear in the list? I ...
2
votes
4answers
1k views

How to develop a theme while having another show up

The title is the question : How to develop a theme while having another show up I already have a DB and a theme.... i like, when log as admin see another theme... just for the time making it clean ...
2
votes
5answers
7k views

How to get category and archive title?

When I query the category (category.php), how to get the name of the current category, ie., the one that is being queried? And for tag and date (be it the day, the month or the year)? Thanks!!
2
votes
2answers
212 views

Theme and Plugins sharing common libraries

I have seen a number of similar questions here on WP_SE but I believe my situation is a little different because the common libraries I'm creating are frameworks that I'd certainly like to be able to ...
2
votes
1answer
656 views

How do I remove RSS feeds from themes?

How do I remove RSS feeds from being listed in the HTML source? Like I want to remove the following: <link rel="alternate" type="application/rss+xml" href="foo.com"> I don't want to remove ...
2
votes
1answer
772 views

What are the package and subpackage comment for?

This is included in themes and plugins. /* * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ What are they for? I've read that they are standard and so on, but what is ...
2
votes
2answers
297 views

How do you protect a premium theme from being copied?

I'm thinking of doing up a couple of premium themes, and selling copies of them. I've never done anything like this before, so I have a couple of questions. I appreciate that this is mainly a forum ...
2
votes
2answers
1k views

Change theme per page or post

Is it possible to change the theme for specific page or post? Any recommended plugin for this?
2
votes
1answer
802 views

Can I apply a WP theme to a specific custom page template?

One section of my website is going to be completely different visually than the rest of the pages, is there a way to apply a WP Theme to specific page templates ?
2
votes
2answers
128 views

Is there a quick way to inject i18n domain into theme/plugin files?

I do have prepared theme files (with __(), and _e(), etc), but they lack domain argument. There are lots of such string scattered around the theme files, editing by hand seems to be a dreadful ...
2
votes
2answers
243 views

Which is the most well coded and semantically correct naked/blank Wordpress theme (based on Wordpress coding standards)?

I've be using Starkers for a while but I wonder if there are blank/naked themes with better code, files, and folder organization (based on Wordpress coding standards)?
2
votes
2answers
50 views

How can I position ShareThis buttons manually when using the plug-in?

In developing custom themes I have clients who want to use ShareThis for their social media. ShareThis offers a plug-in with a control panel that lets the client manage the buttons, style, etc. the ...
2
votes
1answer
68 views

Check php version before theme activation

I've got theme that requires php 5.3+ version. If older - fatal error occurs with it. So what I need to do when user try to activate this theme is to check php version before going into theme code ...
2
votes
3answers
87 views

Where does function_exists() look to decide whether a function exists? [closed]

The documentation says: Checks the list of defined functions, both built-in (internal) and user-defined, for function_name. ( SOURCE: http://php.net/manual/en/function.function-exists.php) Does ...
2
votes
2answers
160 views

How to mark an option as selected

I want to display post categories in theme settings, and I successfully did that using this code: <?php /* Get the list of categories */ $categories = get_categories(); ...
2
votes
1answer
393 views

How to generate and display widgets areas dynamically?

I want display different content in sidebar for every category, but as I create new ones I have to create the area for it. How can I have widget areas for every category and also display them on theme ...
2
votes
3answers
103 views

Is it a good idea to make whole theme widgetized?

I have mainly seen sites using widgets on sidebars or inside multi-column layout. However, I was wondering what if we could use widgets in every blocks like header, main content block, footer etc. Is ...
2
votes
2answers
82 views

A hook that runs only when the theme is previewed

Is there a function or a hook that runs only when a theme is previewed? I'm referring to the preview feature that you get on the Appearance->Themes page. The reason for this is that I want to ...
2
votes
2answers
2k views

How to add plugins to wordpress theme?

I planned to develop wordpress themes commercially.. I just want to know the easy method to add plugins to my wordpress theme which I am developing.. can any one suggest me the simple steps.. and I ...
2
votes
5answers
448 views

How to create a theme option-menu page to save user values

I've created a wordpress theme and new in wordpress development I want to create option page to take some values from user and I've little bit done with that but confused where and how to save that ...
2
votes
1answer
62 views

Using a _GET gives me a debug error (over my head)

Just looking for some advice on something that is bugging me. Please bear in mind I am a PHP noob :-) I am passing a variable in the url to my WP index page like so: <a href="<?php ...
2
votes
1answer
398 views

Duplicate and change a Theme Widget

Is there a way (a common one) to duplicate and change a theme widget ? I'm asking this because, I have this widget that displays the recent news and if we click, it will display ALL news, but I wish ...
2
votes
1answer
234 views

Alternate header image

Is there a convenient and configurable way to alternate between different header images? The main features I'm looking for are: Random select from a set of images Specific header image in given ...
2
votes
1answer
145 views

Making an IE only site (Like a Mobile only site)

For those who are curious, I'm changing the theme but this theme relies on CSS3 and HTML5 and displays very ugly in IE 8 or below. - Especially the navigation. What I want to do is keep my old theme ...
2
votes
1answer
5k views

How do you install a .MO (language file) to use as part of a theme?

I have my own theme that I've created and I need to support 3 languages. I started by adding the gettext functions to my template _e("string","namespace") etc, generated the po file with Poedit, and ...
2
votes
1answer
282 views

Want to have the Post editor remembering the last editing position

As you probably know the WordPress theme editor remembers its last editing position, but I want my post editor to do the same (it jumps to the top if you save a post/page).... Any tips/hacks how to ...
2
votes
1answer
67 views

How do you remove Link backs on Theme settings page?

How do we edit and remove link backs to theme Developers from theme settings page ? Some themes which we install on site has link backs .How do you edit them from multisites? Does any body have Idea ...
2
votes
1answer
34 views

Returning Variables back into a template

If I put a function that I want to use in a template I can put it into functions.php function myfunction(){ echo 'My String'; } add_action('myfunction','myfunction'); and in a template file put: ...
2
votes
2answers
687 views

Issue with get_theme_mod returning a blank value instead of the saved value

I have what seems to be a rather troubling issue with the get_theme_mod function in the latest version of Wordpress. Only on particular servers (of which meet all Wordpress requirements) the function ...
2
votes
1answer
191 views

How do I copy my Parent Templates to my Child Templates?

I'm trying to customize the Home Page of a Responsive Theme template. I had started with the Responsive theme and then found out that I had to do customizations on a child theme, so I downloaded the ...
2
votes
1answer
133 views

Is it possible to use line break in theme description?

I want to give linebreak on Wordpress theme's description in style.css (the one in here): /* Theme Name: Theme URI: Description: Author: Author URI: Version: Tags: */ But it appears the ...
2
votes
1answer
69 views

What is the best way to provide plugin users with a way to customized the styles

I'm working on a plugin to be release to the public, it is a very simple plugin that includes a single html element in the page html. I can do many things to allow users customize its appearance: 1. ...
2
votes
1answer
328 views

Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory

I have a bunch of old posts on a blog that I would like to assign a featured image to. I have retrieved all the images I would like to use for each post. I saved each image file name after the slug ...
2
votes
1answer
56 views

How can I show more than 15 themes at a time in the admin menu?

I have a lot of themes in my test wordpress site. I get a little frustrated that I can't show more than 15 at a time. In pages and posts you can click "screen options" to choose the number, but it ...
2
votes
2answers
415 views

How to go about pre generating css file with variables from theme options

I know there have been lots of discussions on here about rendering a css file with php variables. The "no no" way of bootstrapping the wp-load.php for example. I've been working on a theme framework ...
2
votes
1answer
106 views

What is the Wordpress Pinecone sitting on top of? [closed]

Does anybody know where wordpress gets their banner images? Perhaps we could find the original photo? I'm curious just what exactly this pine cone is sitting on top of.
2
votes
3answers
251 views

Where can I find a good reviewed collection of Twenty Ten child themes?

I am looking to extend the functionality and more importantly improve the design with post thumbnails on main page, beautify post metadata, etc. If you know a good child theme for twenty ten, please ...
2
votes
2answers
641 views

Theme file for all pages that are a child of a specific page

Is it possible within the current theme file naming hierarchy to define a template for for all pages that are a child of a specific page? For example, in this navigation: About Us Contact Who We ...
2
votes
1answer
572 views

Wordpress theme with multiple color schemes

I am building a WP theme and want to implement multiple color schemes. I looked through different free and premium themes and found out that this feature is developed different ways there and here. ...
2
votes
0answers
85 views

Best practice (forward compatibility) for theme options

So here is what I'm wondering... You all know about Option-tree and similar frameworks that theme authors are using for their theme option pages. You also all know that since 3.4 WordPress introduced ...
2
votes
1answer
78 views

Theme information in style.css being corrupted

I am customising someone else's theme to allow the website owner to edit more regions than she could previously. I copied the theme into a new folder, with a different folder name to the original. I ...