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
4answers
641 views

Disable author pages for specific users

I want to disable author pages for certain users, for example the admin user doesn't post anything but still has an author page. Is that possible? Maybe a plugin that adds an option to the users ...
2
votes
1answer
125 views

How to use bloginfo( 'template_directory' ) in array

I want to pass bloginfo( 'template_directory' ) in an array I tried this but not working. How to write it correctly? <?php get_the_image( array( 'size' => 'full', ...
2
votes
3answers
339 views

Will activating a different theme preserve custom settings to current theme?

I have theme A currently active, and theme A has custom settings (like header image, custom CSS, etc). I am having issues with theme A, and want to activate theme B while I troubleshoot these issues. ...
2
votes
1answer
955 views

Fatal error: Call to undefined function wpsc_cart_item_count()

-- I've just done a fresh install of Wordpress 3.4 -- I've downloaded and uploaded this new free eCommerce wordpress theme suggested by smashing magazine. { ...
2
votes
1answer
577 views

Which theme foundry has clean coded themes, where code is poetry [closed]

I'm looking to find a theme foundry (ie. woothemes, elegant themes) that has themes that are very well coded; where "code is poetry". To be more precise, I'm looking for themes coded in "the wordpress ...
2
votes
1answer
382 views

WP Config for FTP credentials

Is there a config in WP that allows you to store your FTP credentials? I'm using the Linux webserver at work to develop and it's really annoying to have to but the credentials in every time I ...
2
votes
2answers
98 views

Download all Wordpress.com available themes, somewhere?

I am looking for a website, or a way to find and download all Wordpress.com available themes for my WPMU website. I have searched for some on http://wordpress.org/extend/themes/ but they don't seem to ...
2
votes
1answer
107 views

Is it mandatory to have a link to the theme designer?

I just wanted to know if it's ok to modify/remove links pointing to the designer of the theme. In my case I have "theme by" and the site's logotype, would it be ok to remove the logotype and write ...
2
votes
1answer
450 views

I'm trying to add an image in my CSS

I'm trying to add an image in my CSS with the theme folder code, <?php bloginfo('template_directory'); ?>, which works in HTML but for some reason it's not working in the CSS. Does anyone know ...
2
votes
1answer
1k 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
6k 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
1answer
83 views

get_template_directory_uri does not seem to work when defining WP_CONTENT_DIR

I have defined in my config: define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/somedirectory' ); after Codex: Editing WP Config BUT <?php echo get_template_directory_uri(); ?> prints out: ...
2
votes
2answers
219 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
352 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
81 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
3answers
6k 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
61 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
617 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
2answers
249 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
109 views

Workflow and best practice for documentation [closed]

We have been creating a bunch of templates that are very custom and change from time to time but also have a bunch of similar parts from theme to theme. I am looking to streamline the way we create ...
2
votes
1answer
743 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
873 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
336 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
846 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
131 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
45 views

What's the earliest point I can get the queried object ID?

I'm writing a supplement plugin to Wordpress Mobile Pack because I would like to use the default theme on pages that are assigned a certain page template. My plugin will only deal with the mobile ...
2
votes
2answers
181 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
109 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
140 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
232 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
532 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
105 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
89 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
494 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
63 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
488 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
241 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
146 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
6k 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
290 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
68 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
53 views

Override Constants in Child theme

I have a parent theme that declare these constant in function.php: define("THEME_DIR", get_template_directory()); define("THEME_DIR_URI", get_template_directory_uri()); define("THEME_NAME", ...
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
949 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
240 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
168 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 ...