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 (1)

5
votes
0answers
50 views

Can I create customizer setting that can handle plugin shortcode?

Can I create a customizer setting which will handle a shortcode from a plugin? Do I violate and rules or guidelines in WordPress theme development? If it's possible what is the best way to sanitize ...
5
votes
0answers
121 views

SSL breaks customizer: page isn't returned from ajax

I have a WordPress install using a Comodo SSL certificate. I have the WordPress HTTPS plugin installed and I'm using the AZ theme, and the admin is set to load over HTTPS. So far so good. On the ...
3
votes
0answers
20 views

Send data from Customizer Settings to Customizer Preview with settingless control

There are a few ways to speak back and forth with the customizer API. I don't think my scenario is that much f an offshoot so I will give it to you. I have a button in the Customizer to trigger a ...
3
votes
0answers
33 views

WP Customizer - Prevent live preview

How do I prevent a widget being updated in the customizer preview if a widget field fails a JS validation check? More generally, is there any actual documentation for the customizer JS API? (I mean ...
3
votes
0answers
302 views

Customizer preview doesn't update get_option() value properly

I have a setting in index.php if(get_option('cb2_blog_home')){ cb_get_blog_links(); } This code allows the home page blog index to be turned on and off. The cb_get_blog_links() function draws ...
3
votes
0answers
168 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
0answers
6 views

How to upload multiple images with WP_Customize_Media_Control

This question is specifically related to the WordPress Customizer. I am looking for a way to upload multiple images with the WP_Customize_Media_Control. It is easy to do this for metaboxes, but I do ...
2
votes
0answers
14 views

Different customizer previewUrls per section

For example if there is a Customizer section that focuses on Woocommerce options, I'd like the user to be on the shop page for that, to see all these changes, live. I can do http://127.0.0.1/wp-...
2
votes
0answers
19 views

Detecting Wordpress Customizer Panel

Recently started developing a Wordpress theme relying heavily on the customizer API. One thing I'm stuck with is detecting when a specific panel has been clicked or opened. Regular old "on click" ...
2
votes
0answers
73 views

Color Picker (iris) in widget - refresh when edited in Customizer

I have added the WordPress Core color picker (iris) to a widget I developed, but when you edit the color, there is no change triggered. As a result, the iframe (live preview) for the Customizer does ...
2
votes
0answers
66 views

Theme Customizer - Choose where widget area appears, to let users organise widgets

I am creating a Theme, and I have a problem with Widgets and Widget Areas. I am using the Theme Customizer to let the user edit the content, colors, etc. I know how to create a widget area. I need to ...
2
votes
0answers
277 views

Repeater field in Customizer

I'd like to develop a setting/control for Customizer that allows dynamically to add fields. The typical example would be the possibility to add an unlimited number of slides to an slider in a Theme. ...
2
votes
0answers
34 views

Need to run a plugin on Customize.php

I'm running a multisite installation and have a plugin installed that lets users that are given a user meta option to be their specific role on any site that they aren't associated with. So if they ...
1
vote
0answers
13 views

Check if the value was set or is it a default value in Customizer with wp.customize API

When you check for a value of an option with: wp.customize.value( 'option_name' )(); You get a value even if it was not yet set. That is, if the theme is loaded the first time and the user hasn't ...
1
vote
0answers
26 views

Dynamically generated wordpress customizer options?

I looked for a while, but I couldn't really find anything about this. So I'm trying to generate a customizer panel with a single option and setting attached, initially. This options is something like ...
1
vote
0answers
26 views

Loading template parts conditionally in Customizer

Here are my issues: I have layout options in customizer for full width or two columns. For fullwidth sidebar will not be loaded. The problem is if the setting is currently on full width when ...
1
vote
0answers
35 views

Dynamically change feature image in customiser

For this client's Website I am making on their homepage there is a section called featured products with images showing off the product. Currently I have to update these images manually through my ...
1
vote
0answers
24 views

Add customiser controls directly to a panel

I'm using the customiser and I'm making use of the Panels feature added in version 4.0. I like that you can easily add Sections to Panels, but I'd like to also add Controls directly to Panels - ...
1
vote
0answers
234 views

How to refresh Theme Customizer after change color inside wpColorPicker?

I develop my custom widget with setting where I can set up custom color for the widget. I use this code to initialize wpColorPicker instead of default text input in form() method of Widget class: ...
1
vote
0answers
61 views

Theme customizer - possible to disable Live Preview?

This is an unusual situation where I have a MU installation where one of the network sites is as actually a widget, and therefore the page contains only javascript in a document write statement. The ...
1
vote
0answers
36 views

Save & Publish disabled for two dimensional array Customizer

I am developing custom control in customizer. Control Its 4-5 textboxes that I can sort internally. Its a foreach loop. textbox1 textbox2 textbox3 .. The data stored is in array. $theme['textbox'][...
1
vote
0answers
127 views

How to overwrite JS variable with wp_localize _script?

The function wp_localize_script( $handle, $name, $data ); does not work when trying to overwrite the same variable, that is when calling the function second time with the same $handle and $name but ...
1
vote
0answers
111 views

Theme Customiser not live previewing changes on pseudo elements

I've been working with the Theme Customiser API lately and found that pseudo elements are not live updating using the previewer. In my project I have an image containing a transparent overlay using ...
1
vote
0answers
159 views

datepicker works on widgets options page, but not on customizer

I have a widget with a date option field, which works correctly when in the dashboard, but fails to display when on the theme customizer. I declare the field for the in the form() method like this (...
1
vote
0answers
28 views

How to make customizer settings appear only when image is uploaded?

I'm trying to replicate the WordPress core background image customizer settings where the styling settings/controls only appear when an image is uploaded, but can't find a way around it. Is there a ...
1
vote
0answers
16 views

Override customizer values on a per-menu base

suppose I have a few options in the theme customizer, and I might want to show for example 5 different categories listing menus in the site. In the customizer I can set options for all of those, ...
1
vote
0answers
134 views

Allow guests to use WP Customizer but disable save button

I've seen in some WP demo themes that developers let users to see a theme customizer (allowing to try the customizations) disabling the save button as well. So the question is how to do that in a ...
1
vote
0answers
168 views

Adding Controls to Theme Customizer If Certain Page Template is Active

How to Conditionally add controls on Theme Customizer panel. Conditional like is_page() or is_page_template() obviously does/will not work because the page is being shown is customize.php. Code ...
1
vote
0answers
382 views

How to instantiate customize_save_after callback function?

I have to do some custom operations after settings are saved in the customizer. It looks like the callback function isn't invoked. What am I doing wrong? Something to do with the Ajax status of the ...
1
vote
0answers
107 views

How to modify default controls in Wordpress theme customizer

I'm trying modify the default control in the wordpress theme customizer specifically the action for the close button. By default clicking it will make you go back to the themes page, but I want it to ...
1
vote
0answers
54 views

Binding Serialized Setting to JS for Realtime Response

I'm stuck in a situation. I'm developing a theme where I'm using the wordpress theme-customizer to build the settings page. I'm using the serialized method, something like this: $wp_customize->...
1
vote
0answers
49 views

Is it possible to visually group items on the theme customizer?

My theme customizer is getting bigger and I think from an UX perspective would be nice to visually group some similar items. Is there way to do that? Something like put a divider or playing with CSS ...
1
vote
0answers
43 views

remove add new post, if there is already one post

I have a custom post type, but I want to allow only one post. if the user posts then the add new post should should be disabled or removed. so only post is allowed of that custom post type. If the one ...
1
vote
0answers
124 views

How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?

I am using "Allure Real Estate Theme for Placester" wordpress theme, I tried the below three methods but no positive result in realtypointusa.com I tried in Dashborad-> Appearance-> Menus and re-...
1
vote
0answers
96 views

Unset color set in Theme Customizer

I'm building a theme using the Theme Customizer and have a few options with color pickers. It seems as though once you set a color using the color picker, there's no way to clear/remove/ unset it, is ...
0
votes
0answers
13 views

Customizer JavaScript function

I'm trying to add loaders by customizer . The loader fadeout and then section background fadeout. I'm trying to add that by a postmessage function so that we can see the loader change in the ...
0
votes
0answers
21 views

Moving widgets panel in Customizer one level up

When adding widgets into the sidebars using the Customizer, there is one unnecessary step till you get to panel with the "Add a Widget" button. Three steps: Widgets → Sidebar → panel with ...
0
votes
0answers
23 views

Add Google Map with Wp Customizer API

Ideally I would like users to enter their address in the customiser, and then display their map on the contact page. Not being able to do this, I simply added a text area where they can embed / paste ...
0
votes
0answers
17 views

How to Remove background attachments + Background Image must be 1440x900 px

I want to remove the custom_background features; such as the background attachment, position, background repeat, etc etc. Basically every option below the background uploader as you can see below. PS:...
0
votes
0answers
15 views

HTML inside Customizer

Some themes have that premium button with HTML items in the editor, like this: How did they managed to do that? I tried to look inside the functions.php of Zerif Lite (A theme who also uses HTML ...
0
votes
0answers
36 views

widget_sidebar not working

I'm trying to add a widget to my customizer. But it is not being added, it doesn't matter which code I try to add from the WP examples but they're all not showing up. add_action( 'widgets_init', '...
0
votes
0answers
23 views

Detect hover over control label in customizer

In the WordPress Customizer > Site Identity: there's a text field for 'Site Title' wrapped in a list item id li#customize-control-blogname I want to detect whenever a user hovers over this element. I ...
0
votes
0answers
27 views

Customizer Values Not Saving in Custom Theme

I'm adding a simple text field to the customizer in a custom theme using WP version 4.5.1. I frequently add these sorts of customizer additions to my themes, but this time no value is saving to the ...
0
votes
0answers
10 views

Widget not notifying customizer of changed value when updated via Javascript

I'm developing a wordpress theme that relies heavily on widgets for flexibility. I'd like to use the wp media javascript library to add images to some of these widgets instead of just having a text ...
0
votes
0answers
60 views

Change “Display Site Title and Tagline” checkbox text in theme customizer

Am making a custom theme, and in the Theme Customizer, will it be possible to change that checkbox under Site Title to something like "Display Site Title instead of Logo"? (i have removed that ...
0
votes
0answers
44 views

Customizer API - trigger refresh manually

Is there a way to trigger refresh of live preview manually from js file? I have tried wp.customize.instance('some_setting_id').previewer.refresh() http://shibashake.com/wordpress-theme/wordpress-...
0
votes
0answers
11 views

Modify the forms control in the theme customizer using jquery or js

i'm trying to modify the input boxes which i created using $wp_customize from the theme customizer, for example if a select box from the theme customzer changes of value, the other select boxes hide. ...
0
votes
0answers
38 views

Customizer not working when developing on localhost using gulp

I'm hoping someone has encountered this before and has a simple solution. When using gulp to develop locally, the customizer doesn't load. JavaScript console gives the error: customize.php:1 ...
0
votes
0answers
45 views

Refresh the Customizers preview after editing fields

I'm using ACF fields on a few custom widgets. While using the Customizer to edit fields, they will save on change but the preview will not refresh. Calling wp.customize.previewer.refresh() will ...
0
votes
0answers
16 views

Theme Customization API limits

I am building a theme with a lot of theme options and I'm using the native customizer to include those customizations options. So I have registered dozens of new panels, sections, settings, controls ...