theme-customizer is a set of classes introduced in 3.4 for customizing themes using a live ajax preview. Theme developers can use these classes for theme options.

learn more… | top users | synonyms

0
votes
1answer
77 views

Redirect after closing Theme Customizer when user does not have permission for theme page

I'm looking for a way to alter the href target for the "close" button from the theme customizer. Another question/answer came very close, but in my case the solution used which involved ...
2
votes
2answers
96 views

How do I conditionally enqueue stylesheets or scripts in theme customizer settings?

I'm developing a new WordPress theme and I'm at the point where I'm adding theme customizer options. Most of them have been surprisingly easy to implement, but I'm stumped on a couple of important ...
0
votes
1answer
120 views

Custom Stylesheet instead of Inline CSS for Wordpress Customizer API Overrides

I've looked at Wordpress Customizer API and it looks to be able to achieve what I'm looking for; allowing the developer to set aside as many dynamic styles which can later be configured by the ...
0
votes
1answer
17 views

Is it possible to rename a customizer control heading?

So far I couldn't figure out how to rename a customizer control. I can rename sections, but cannot find a way to controls. I would like to rename the default Tagline control to Site Description. Any ...
-2
votes
2answers
190 views

how to store the_post_thumbnail() value in a variable

as you know the result of the the_post_thumbnail() is an image tag i need this image tag to store at a kind of collection or Array i using the following code but it doesn't help me out. and use it at ...
0
votes
0answers
35 views

How to show and hide child elements in WordPress customizer?

I am trying to achieve the same functionality used by WordPress default themes in theme customizer for Static Front Page. Will anyone help me out here to get the same? I want to add settings for logo ...
0
votes
0answers
265 views

get_theme_mod(); returns nothing

I am having trouble with my customize field in WordPress. The field shows up fine in the customize section of WP but it just does not echo out. <p> <?php echo ...
0
votes
2answers
358 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
4answers
129 views

View category in the preview of Theme Customizer

I am building a theme which Theme customizer changes colors, sizes, etc. and has also the option to choose a category and style that category specifically. How can I display that category in the ...
0
votes
1answer
33 views

retrieve theme custom settings

I have modified twentythirteen template adding custom settings for my theme. All settings appear in theme customization section and I am able to save them. I am using WP 3.6. How to retrieve those ...
0
votes
0answers
27 views

Can customize the logo and background in the same theme

I am trying to figure out how to add a logo in the customizer and add a background in the customizer without adding the images through CSS. Is this possible? I am currently using the twentythirteen ...
1
vote
2answers
76 views

How to customize submenus isn wordpress theme [closed]

I have a wordpress theme and in the header.php file it is displaying menus through this line : wp_nav_menu( 'theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default'); ...
0
votes
2answers
274 views

Utilise WP_Customize_Image_Control to only show image picker

I would like to achieve the following (using a copy of twentytwelve): Turn off custom-header theme support to prevent users being able to upload their own images (achieved) Create own section in ...
1
vote
1answer
57 views

Create more than one section in Theme Customizer

i tried to create more than one section in Theme Customizer, but had no success with that. /* Theme customize - Create menu bar link */ function example_customizer_menu() { add_theme_page( ...
0
votes
0answers
39 views

Theme Customizer - Custom Sections Display, but do Nothing

I'm creating a theme and I've started doing some work on the theme customizer. I'm going to do all of it in the theme functions, but I have an issue I want to figure out first: I've added a ...
1
vote
2answers
327 views

create drop down menu in theme customizer from custom db

what i am trying to do is create drop down menu in theme customizer from custom db i have created. db name "students". in the db i have only the id and the name. i want to show all students names in ...
0
votes
1answer
61 views

Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?

I have a function that is designed to do two things: 1) create color picker controls/ settings in the customizer and 2) create a multi-dimensional array $customizeData to be outputted in header styles ...
2
votes
1answer
127 views

How to load some jquery code to make validation in the theme customizer?

i am tring to load some jquery code to make validation in the theme customizer. i have created 10 checkboxes to show some info. but i want to limited the user to choose only 5 checkboxes. so i have ...
1
vote
1answer
123 views

Trigger Customizer saving process with Javascript only

I'm working on a custom theme that uses WordPress Customization API to let the user play with parts of the content of his website, basically the front-page which he can modify by adding/removing ...
0
votes
0answers
38 views

3.5.x Theme Customize: Handling Custom Control Requests

I am extending the WP_Customize_Image_Control as a means to include an upload-able word mark for a site. The control works just fine, but I need to do some post process handling on the image (i.e. ...
0
votes
0answers
70 views

Is it possible to use <optgroup> in <select> in WP Theme Customizer

I use next code to render a select option in theme customizer: $wp_customize->add_setting( 'powered_by', array( 'default' => 'wordpress', ) ); ...
0
votes
1answer
105 views

Get background color for Live Preview with Theme Customization API?

This could very well be a stupid question, but I'm working on a WordPress theme (check the link to see what I'm talking about, then read on)... You'll see the Post Formats icons are surrounded by a ...
1
vote
2answers
81 views

How to check if I am inside the WP Theme Customizer preview?

I have some elements showing on the home page that I do not want to display in the Theme Customizer preview window. Is there a simple check in PHP that I can use for that ? For example: <img ...
0
votes
1answer
338 views

change the Theme dynamically

Is there some way to change the page template dynamically using just a url I wanna use it in a demo theme, so for example when the user enters a particular URL ending with for example ...
0
votes
1answer
42 views

Add multiple pages to theme customizer

So that theme customizer over at /wp-admin/customize.php is pretty cool, but it looks like it only lets you customize one page. Is there any way to add multiple pages or other theme template pages to ...
0
votes
1answer
158 views

One button to change all settings in theme customizer?

I have been attempting to create a theme reset button for the theme customizer that automatically removes all of the theme_mod settings. I have tried multiple ways to do this and have never been able ...
0
votes
0answers
53 views

Extended image control not showing up in theme customizer

I have an extended image control for the theme customizer that adds in an extra panel and lists images I have hardcoded into the extended control. Now the issue is that it is not showing up in the ...
4
votes
1answer
100 views

Theme Customiser Image Control

I'm aware that one can add a control to the theme customiser to add an image. This control returns an image URL however, and I need its attachment ID, not the image URL. Where can I intercept or ...
11
votes
2answers
532 views

Settings API vs Theme Customizer

When would it be appropriate to use the settings API, and when would it be better to use the theme customizer? Having Googled around all morning, I haven't been able to find any well considered and ...
2
votes
1answer
661 views

How to add default images into theme customizer image control?

I am trying to figure out how I can pre-load a theme customizer image control with images I have selected. Is their a way to point the control to a directory so they automatically show up in the ...
2
votes
1answer
209 views

Responsive Images - Generating multiple images from Theme Customizer control upload?

So, after poking around in the code it looks like the filter image_make_intermediate_size is not called by the various WP_Customize_Control() classes at either WP_Customize_Image_Control() or it's ...
0
votes
0answers
21 views

If user removes section with theme customizer I want it to add padding to footer

I added the ability to the theme customizer for the user to remove a section that is above the footer. The issue is when the section is removed it is causing the links in my footer to move up. How ...
0
votes
1answer
120 views

How to add button to top of theme customizer?

I am trying to figure out how exactly I can add a button to the top of the theme customizer. The spot I am talking about is where the "close" and "save" buttons are. The ones that are above everything ...
0
votes
0answers
149 views

How can I clear the theme mod settings?

Ideally I am looking to add a button to the theme customizer that allows the theme to reset to default settings, although that may be asking for too much in one question so I am wonder if anyone knows ...
0
votes
0answers
129 views

Cant get theme to change footer color through theme customizer

I am having an issue trying to configure the theme I am working on to allow the footer color to be changed. So far all of my other options work so I am geussing it is an issue with the way I am ...
0
votes
3answers
393 views

Theme Customizer not loading JS for live preview

I am currently working on adding options to the theme customizer. For the last two hours I have been trying to get the live preview working and I am trying figure out why my theme isn't loading the ...
0
votes
2answers
33 views

Is there a WordPress boolean for “theme_customizer_active()”?

Looking to add an action to wp_head but only if the user is in "theme customizer" mode. Does anyone know if there's a conditional for this?
0
votes
2answers
405 views

Color Options from Theme Customizer API not returning via get_theme_mod()

I am working with the Theme Customizer API and am going crazy trying to find the stored values. The values successfully save and update on the front-end, so they are obviously registered ...
2
votes
1answer
326 views

Adding a description to theme customizer controls

How could I add a description to $wp_customize->add_control? I've found I really need to include a short description on some of the controls but it doesn't look like it's possible. I noticed you ...
0
votes
1answer
116 views

default custom background image not saved in database when creating a new site

I am a theme author and the theme I made is used in a multisite environment. I have added the custom_background feature to this theme, with a default image and everything works as expected : the user ...
2
votes
1answer
162 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? ...
0
votes
1answer
459 views

Unable to pass variable on theme cusomizer add_settings()

I have theme options saved as serialized data. And I have named the option name by getting theme name. $theme = wp_get_theme(); $settings = sanitize_title($theme).'-options'; // do not change! But ...
1
vote
0answers
106 views

Theme Customization API and child themes

I've recently developed a parent theme that makes heavy use of the Theme Customization API. Is there an easy way to port these settings when a user activates one of my child themes? Currently, the ...
2
votes
1answer
334 views

Modify Javascript Configuration Options for Theme Customizer Colour Picker

I've started fully integrating the Wordpress Theme Customisation API into my Wordpress theme and it's phenomenal. One issue I've encountered is that including the default colour picker is great, but I ...
0
votes
1answer
142 views

Get register wp_customize settings in the front end

The customize_register is hooked to wp_loaded which runs on the front end too, but when in the frontend I access the global wp_customize variable, it's empty. I'm wondering, does WordPress removes the ...
2
votes
1answer
305 views

In the new Theme Customizer API, how to send a value from the front back to the admin panel?

I'm digging a bit into the new Theme Customizer API, in particular into the javascript one, and what I find is delighting. I've managed to add my own custom parameters, and I also have the javascript ...
2
votes
1answer
312 views

Theme Customizer changes are dissappearing when change page

An example option i am using: // Layout $wp_customize->add_setting( $themeslug.'_settings[layout]', array( 'default' => 'content-sidebar', 'type' => 'option', ...
2
votes
1answer
1k views

How do I implement the Wordpress Iris picker into my plugin on the front-end?

This question here is asking the same question as I am, but there were no adequate answers nor a selected correct answer so I am asking again hoping if I ask in a more coherent manner I might get a ...
3
votes
1answer
426 views

How to remove the Theme Customization Button from the dashboard and themes options page?

In my Wordpress theme that I've currently been building I do not take advantage of the Wordpress Theme Customization API. As much as I would like too, I've invested far too much time into my own ...
4
votes
1answer
519 views

How WP_Customize_Background_Image_Control is supposed to work?

I'm trying to add a second background image function to my theme customizer with this code. // HTML Background Image $wp_customize->add_setting( 'html_background_image', array( ...