The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
105 views

get_option() vs get_theme_mod(): Why is one slower?

I've been using get_theme_mod() for some time in various projects of mine. I decided to take advantage of the Theme Customization API in WordPress v3.4 once it was available as I felt it was an ...
2
votes
1answer
59 views

Use default value of wp_customizer in theme_mod output?

Is there a way to output the default value of a wp_customize text field type using the echo get_theme_mod (); without actually going in the Theme Customizer, modifying something and then saving it? ...
1
vote
1answer
99 views

Loop get_theme_mod

I've got a bunch of customizer settings set up Rather than calling individual get_theme_mod statements for each setting individually, is there a way to simplify it to loop thru them without having to ...
0
votes
2answers
87 views

adding checkbox to theme customizer

I have been trying to add a checkbox into the theme customizer. I have a checkbox added using this code in my functions.php function theme_customizer_register_checkbox($wp_customize) { ...
3
votes
1answer
76 views

Theme customizer: How do you grab the value later?

I'm working on a custom site, doing all my work in a child theme. I need to add one variable, slider speed, to the customize control system. I've been able to modify the custom controls via the ...
0
votes
2answers
102 views

How to make CSS load live based on options clicked in the theme customizer?

I have a problem. I am trying get the theme customizer load a different CSS file based on what radio input in clicked, live! It works so far right now that option is saved when I click "Save & ...
0
votes
2answers
545 views

Theme Customizer not displaying saved values in wp_head (CSS)

I've been learning hot to add theme customizer feature to a theme. Used few sources for the code and help, but chose the Codex in the end. I am using a snippet from the codex itself, slightly ...
2
votes
1answer
205 views

Crop image from get_theme_mod Customizer field

I'm using the following code to allow a user to upload a custom image (in addition to header image) through the customizer. Is there a way to crop the image when displaying it? ...
2
votes
1answer
301 views

How to hide get_theme_mod if field empty

I'm using: get_theme_mod to show various pieces of info from the theme customizer, in the following format: <a href=" <?php get_theme_mod( $name, $default ) ?> ">This is the ...
1
vote
2answers
526 views

Update Theme Location Programatically

I've been trying to update my theme location programmtically and while the menu gets created with menu items, the theme location never gets set. Here is what I have: function create_my_menu() { ...
0
votes
2answers
281 views

How to internationalize header image?

I have in the following code in the template: <img src="<?php header_image(); ?>" /> However, I want to change this image according to the language selected (through GET parameter ...