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)

0
votes
1answer
1k views

Using JQuery to check for Rel Attribute of Image before Overriding It

My Wordpress theme (when enabled) overrides the rel value of the link of all images with rel="lightbox" using the following code: http://pastebin.com/Bsh739QY How can I edit the JQuery to check for ...
1
vote
2answers
300 views

Sub folder CSS that's read by Admin panel

I'm in the process of creating a theme that will have several different setup options based on input from the administrator. One of the options will be to have a Zurb or Basic type layout. I'm ...
1
vote
2answers
746 views

Load a theme based on browser detection

Ok I know browser detection is considered bad practice but I can't find a way around it because I really do need whole different themes for a complex site. So I snatched this function from ...
0
votes
2answers
667 views

Multiple sub directories for theme template pages

I apologize if this questions has already been answered, I have a feeling I'm just not using the right terminology for my search. I'm in the process of building a base theme for my employer. One of ...
1
vote
3answers
3k views

What can I hook into after_setup_theme?

I'm wondering what can I or should I NOT hook to after_setup_theme? I'm wondering because I have been told that I shouldn't hook wp_enqueue_style to it, but I have seen other places using it to hook ...
0
votes
1answer
255 views

Having issue with WordPress wp_enqueue_style

I am building a full design into WordPress for the first time and I am trying to load in stylesheets and script files but all I seem to be getting is the text output of the location. What I have is ...
0
votes
1answer
20 views

Displaying Tags for the Page I'm On?

I currently have <?php $comma = array( 'separator'=> ", " ); wp_tag_cloud($comma); ?> and I thought this was solved, until going to other posts and seeing the same exact tags.. so I'm ...
0
votes
2answers
344 views

Commas in Tag Cloud

Using <?php wp_tag_cloud(''); ?> to display tags on my website, how do I separate each tag with a comma but also remove the comma from the last tag?
0
votes
1answer
104 views

Display static pages instead of category, in code

I'm very new to programming and not sure how to go about this. The following code returns 3 category names and feature images and then outputs them on the page. <div id="footer"> <div ...
1
vote
0answers
38 views

Error when using plugin QuickCache with plugin Mobile Smart ?

When I using 2 theme(theme_1 for PC, theme_2 for mobile), when run as PC is theme is theme_1, but when run as mobile is theme is theme_1, I think this error plugin Quick Cache, When I setting plugin ...
8
votes
3answers
4k views

W3 Total Cache, CDN and theme files [closed]

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 ...
2
votes
4answers
14k 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 ...
0
votes
2answers
570 views

How to remove all javascript in a theme wordpress?

I have a theme name is mytheme in themes/mythem/functions.php I using code: function remove_scripts() { remove_action('wp_head','mytheme_head_scripts'); } add_action('init', 'remove_scripts'); ...
0
votes
1answer
493 views

Jquery Theme Roller to Wordpress

How can you load a custom made Roller Theme for Jquery ui to wordpress? I recently created and downloaded a new theme for the datepicker, but can't get it loaded. I tried adding the css file to my ...
1
vote
3answers
158 views

Howto keep header image when changing theme

We have a setup where bloggers can and will have their theme changed. Is it possible to migrate the existing header image to the new theme ? I know how to override the header image with the ...
0
votes
1answer
645 views

How to display message (with switch_theme hook) after deactivating My theme?

I'm able to display a message by activation of my theme with the 'new' after_switch_theme hook this way: function themeActivationFunction($oldname, $oldtheme=false) { $msg = ' <div ...
1
vote
3answers
2k views

Download WordPress.com theme: how?

I like this theme. But I don't want it to use with a wordpress.com blog but download it to use with my WordPress site at my own domain. But I can't find a download link. Is it possible?
0
votes
1answer
3k views

How to license my commercial WordPress theme? [closed]

I am planning to sell themes on Themeforest... But i don't have any idea about Theme stuffs... I include some third party stuffs like jQuery, BootStrap, etc., I will include their license. No problem ...
0
votes
1answer
1k views

Implementation of language_attributes function

I am reverse engineering how to make wordpress themes. For that, I opened its files and found language_attributes() function. I went to function.php to find it but it was not there. Any ideas where ...
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. { ...
1
vote
1answer
33 views

correct tags for validating input types

I have following types of theme options inputs, which I need to validate. $numbers = "#1234"; $email = "abc@example.com"; $simeple_text = "How's going?"; $code = "<script ...
1
vote
1answer
302 views

How can we hide the parent's theme url at the child themes details on a multisite?

I hope the title makes sense. But anyway, to clear things up, here is a screen shoot of what I mean: To be honest I really don't see how site admins benefit from this piece of information since ...
0
votes
3answers
582 views

get_pages Not accepting my query

Im hoping someone maybe able to point out my mistake. I have a function in functions.php with a simple meta_query. If I use this query. $args = array( 'meta_query' => array( array( ...
1
vote
0answers
45 views

Inconsistent translation on a WP site

I have a WP site that I installed with the French translation, as provided by Wordpress France, and which is quite accurate. I wanted to apply an English-only theme, which is not using the PO files, ...
1
vote
2answers
82 views

Posts vs. Pages

Okay so I've spent the last few weeks (on my spare time outside of work) creating a site for a client with a custom built theme. This is my first use of wordpress and the site can be seen here at ...
0
votes
1answer
62 views

Entire VPS locks up when using particular theme [closed]

I have a VPS with, so far 2 osCommerce websites, and it was running fine. I then installed Wordpress 3.4.1 and it was fine as well. I tried a free theme from the theme installer called Hero, and ...
0
votes
1answer
128 views

Custom link color or stylesheets

I'm developing av theme for my WPMU users and are wondering is there a function for choosing the colors on the links? The same way Wordpress lets you change the background-color or header-images. ...
-1
votes
3answers
213 views

How can I install my custom-made theme on a wordpress.com blog? [closed]

I've only ever worked with WordPress on my own server. I'm using wordpress.com for my development environment, but I can't for the life of me figure out how to upload my themes since as far as I know ...
2
votes
1answer
1k views

register_sidebar ignores 'id' and 'class'

I am using the following to register a widget area: if ( function_exists('register_sidebar') ) register_sidebar( array( 'name' => __( 'Footer Widgets', 'hex'), 'id' => ...
0
votes
2answers
92 views

Cannot update a file for my theme

I have a theme that automatically adds some widgets. I don't want them and so I tried to edit the Sidebar.php but it just fails and sends me to a page with message 404. Here's the code block I am ...
1
vote
0answers
501 views

Custom Walker for wp_list_categories

I need some help with making of one Walker Class. Now I’m having a menu with categories and in the dropdown there are some subcategories. The menu is something like that: <div ...
1
vote
1answer
610 views

I get the following message The uploaded file could not be moved to /home/reascom/public_html/wp-content/uploads/2012/07 [closed]

The uploaded file could not be moved to /home/reascom/public_html/wp-content/uploads/2012/07. This is the message I get when I try to load anything to my existing web site. images and themes get ...
0
votes
2answers
88 views

Putting two themes together to create a complete site

I know my way around WP as probably an intermediate user. In the near future, I will have to integrate the design of a template from a completely different theme into a theme I'm currently using. The ...
0
votes
2answers
41 views

static front page ONLY for certain themes?

A theme I am developing depends on there being a static front page. However, there seems to only be one global option to change if front page is static. So when I go to preview the theme, it won't ...
1
vote
1answer
237 views

Archiving annual festival site

I have a query regarding managing a wordpress setup, I am sure others have been in a similar situation and was wondering what would be the best solution. I manage an annual festival's website, each ...
1
vote
1answer
195 views

Generating the ogp tags in theme

I use to generate the ogp tags in themes I code but this commercial one is beyond my knowledge. The client want to share a page but any image option shows up. Instead of a taxonomy-name.php template ...
-1
votes
1answer
46 views

How to make website with many template that active [closed]

I want to make a website with wordpress engine but with some features. One website has 3 template and every template is active because I want to make 1 website that has 3 sub categories such us ...
1
vote
6answers
16k views

How to add custom css file in theme?

Some themes ask you not to edit the style.css file, instead use custom.css file. If you write code on custom.css, it will overwrite the same element style in style.css. I think this is done in order ...
2
votes
1answer
2k views

Why is get_post_format() for “Standard” returns empty

I've enabled custom posts types add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); The default post type is set on Standard, and it works for all ...
2
votes
1answer
395 views

How do I change the gallery that is inserted in the post?

When I insert a gallery to a blog post using the [gallery] shortcode or simply the insert media button I get a default structured gallery in my blog through the_content(); However the gallery comes ...
1
vote
3answers
286 views

Removing feeds from header using a function?

I want to remove the default RSS feed, which I can successfully do by adding this in functions.php file. remove_action( 'wp_head', 'feed_links', 2 ); However, It is important for me to use this in ...
1
vote
2answers
2k views

hfeed CSS class in Twentyeleven Theme

The twentyeleven theme has hfeed class attached with the main container #page. I could not find any definition of hfeed in style.css. Does it have any purpose or its just a random class name given?
6
votes
1answer
661 views

WP 3.4 - what action/hook is called when theme customisation is saved?

i'm looking for the action/hook called when saving theme customs colors in the new admin interface? i need to call a custom function to save a set of php generated images. if anyone have clues... :) ...
0
votes
1answer
47 views

showing all recent posts in theme

I am creating a wp theme & I stuck at one point. I have recent post listing on my home page of theme which have See All link which redirect user to the page which list all the recent posts except ...
0
votes
1answer
112 views

Change the name of the root name of an already built Wordpress theme

If I have built a site using an existing theme (i.e. "Twenty-Ten"), but then modified it considerably and want to re-name it entirely, how would I go about doing this without breaking all the links? I ...
1
vote
1answer
2k views

Add social icons in a theme through custom admin menu

Is it possible to make a theme with an option of configuring social icons with links through the custom header control panel? I googled it and found nothing that could help me, any help on that topic ...
0
votes
1answer
125 views

How to add cropped custom header image?

I don't see in my custom theme any option for uploading the header image (although there is a code for it in the header) Do I need to register it somehow? Also, I have a specific size I want to ...
0
votes
1answer
7k views

Automatically Display Sub Menu

To start... I am new to Wordpress and developing themes. I've got a main menu which I've placed in my header using the following code: <?php wp_nav_menu( array( 'theme_location' => 'primary', ...
0
votes
2answers
4k views

How do I get gallery thumbnail URL and change the default thumbnail size?

when I create a gallery I get this code generated yet I can;t find out how <img width="150" height="150" src="http://localhost/wp2/wp-content/uploads/2012/06/28_0120-150x150.jpg" ...
0
votes
1answer
1k views

Is there a way to serve different resolution images to different devices?

I am making a mobile site, and I want to serve higher resolution images to devices with high pixel density, and normal image to the rest, is there a Wordpress functionality or plugin to help me do ...