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
3answers
448 views

Why is there no global function in wordpress to return the output of any function call?

We have template tags and some functions that start with get. Sometimes it would be just nice in themes to do like: $title = the_title(); to use the html later on. This is just a simplified ...
2
votes
1answer
82 views

Upgrading a custom theme through the Dashboard

I can't seem to upgrade my custom theme. Whenever I try to uploaded a new package, all I get is: Unpacking the package… Installing the theme… Destination folder already exists. ...
2
votes
2answers
884 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
4answers
734 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
149 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
417 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
1k 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
659 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
2answers
736 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
1answer
406 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
117 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
662 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
2answers
322 views

Wordpress AJAX in header.php

I am currently studying Wordpress AJAX but keep getting error message (so the success function is not being executed) Currently I have changed the header.php (of twentythirteen theme) to include ...
2
votes
1answer
143 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
296 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
497 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
90 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
1answer
1k views

Custom post types and child theme

Okay, here's the deal. I am working with a child theme and I want a custom post type. What I did Added the following code the functions.php of the parent theme. add_action( 'init', ...
2
votes
4answers
8k 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
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
284 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
111 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
788 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
964 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
379 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
1answer
878 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
136 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
81 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
512 views

Permanently remove first image from posts

I have around 2,500+ posts on my site where I've inserted images using the traditional method into the post content itself. In upgrading to a different theme, the single post page now displays the ...
2
votes
3answers
184 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
293 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
624 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
108 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
93 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
3k 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
515 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
64 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
546 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
249 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
7k 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
296 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
70 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
102 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", ...