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)

0
votes
1answer
9 views

customiser settings for checkbox (displaying content)

I'm currently making a option in customiser to hide content using a checkbox, tick to show and unticked to hide.. was using it to apply the display:block and display:none on a id to get the effect but ...
3
votes
1answer
36 views

Custom Image section in Customizer

So I have this Custom Section in the Customizer that controls the Feature Products on the Home Page. There all registered and so on but the problem I'm stuck on is when the client uploads one of the ...
1
vote
0answers
9 views

How to conditionally display widgetized areas in theme customizer?

On my client's site there will be quite a few widgetised areas - one for each page created plus global ones. The problem is that they all display in the "widgets" section in theme customizer at the ...
1
vote
2answers
732 views

WP Customize refresh problem

Hi I am adding options to WP Customize. Mostly everything works, but One of my variable is not refreshed in the preview window. $wp_customize->add_setting('checkbox', array( 'capability' ...
1
vote
0answers
37 views

Customizer Active Callback not working

From some reason my active_callback => 'is_front_page' is not registering and therefore not showing up inside the customizer on the front-page - I have definitely set my front page to static and ...
0
votes
1answer
61 views

trying to figure out how to use more that one image upload in the same section in theme customizer

i am trying to figure out how to use more that one image upload in the same section in theme customizer. the function is new WP_Customize_Image_Control. when you try to get the path of the image you ...
0
votes
0answers
20 views

Customizer live preview doesn't work

I've added an upload image field to the customizer using the following code: In customize.php: $wp_customize->add_setting( 'header_logo', array( 'default' => '', 'capability' ...
0
votes
0answers
8 views

Using customizr panel to add colors to categories

Basically what I'm trying to do is to list all the categories in customizer panel and change the color of each category. What I did is I created a section for "Category Colors" and added the "color ...
1
vote
4answers
3k views

Widgets not displaying in theme customizer

I am developing a new theme and I am using several sidebars in this theme. All works fine, but the widgets are not showing up in the theme customizer section. All widgets are working fine under ...
1
vote
0answers
23 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
2answers
58 views

Allow Shortcode in Theme Customizer

All theme dev who follows the wp guidelines properly, now uses ability of default wp customizer to customize their themes, instead of making a different theme option section the admin panel. But what ...
1
vote
0answers
24 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 ...
0
votes
1answer
10 views

Let user select file in customizer

In wordpress theme cutomizer I want user to be able to select a file from media Library. Similarly as with WP_Customize_Image_Control, but I want him to be able to select any file not only an image. ...
2
votes
1answer
718 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
48 views

How to suppress anchor tag click redirection in customizer preview frame?

I've noticed 3 scenarios relating to links in the customizer preview frame. 1) Clicking a link to an external url does nothing. This is good. 2) Clicking a link to a same origin/domain url results ...
0
votes
1answer
19 views

Get Image Width From WP_Customize_Image_Control() File Set in WP Theme Customizer

Here's the code we're using to set an image file as an option for the site's logo via WordPress' theme customizer: /* Logo > Image -------------------------------------------------- */ ...
1
vote
1answer
13 views

Different fields available for different sites when when customising Menu's

I have 2x websites, both running identical versions of the same theme, yet when I try to customise the menu's I'm met with different field options. On Site A I am able to add settings to fields such ...
5
votes
2answers
3k 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 ...
0
votes
1answer
23 views

How to add css option to Header Image customizer?

I have added the Custom Header Theme Option to the Rowling theme. It works fine but I want to extend this by adding CSS controls in the customizer for backgound-size, and background-position. Please ...
0
votes
0answers
17 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 - ...
6
votes
1answer
48 views

Link to specific Customizer section

I've got a site with a few extra Customizer sections. Is there a way to link directly to these so that section open when the page loads? Something like ...
0
votes
1answer
15 views

How to access the nav_menus panel with the customizer api?

I want to change the priority of the menus I have created in the nav_menus panel in the WordPress customizer. I have tried all sorts of variations to: $wp_customize->get_panel( 'nav_menus' ...
0
votes
0answers
3 views

How to prevent the customizer from syncing on specific input elements

I am trying to use the jquery select2 library for multiple category selection in a widget. The main default UI element of the select2 is an input element on which input can trigger some selection ...
2
votes
1answer
23 views

Theme Customizer - How to create a sub panel

In Theme Customizer, i'd like to create a sub panel like this one of wordpress: When we add a new item, a new panel which allows us to pick up a item displays on the right, how can i do the same ? ...
1
vote
1answer
25 views

How to use sanitize_callback?

Theme Check is telling me add_setting() should have a sanitize_callback function so I tried to add one. This is for a color selector: $wp_customize->add_setting($setting_name, array( ...
0
votes
0answers
11 views

Customizer, change preview url when a control changes

I've a dropdown control that lists all pages of the website. When I select a page in the dropdown I would update the preview iframe to that page. There is the following method to change the ...
-2
votes
2answers
18 views

Do i need to use PHP in customizer api?

i understand with the wp rest API i will be able to build Wordpress themes with other languages but will i be able to do the same in customizer api or would i need to use php to give customization ...
0
votes
0answers
3 views

Widget: File Upload not showing save option

I build widget for uploading files ( pdf, jpg, etc ). Fallowing by some guides from web. There is one problem: after uploading file from media library i dont have the save option enabled in my ...
1
vote
0answers
16 views

Change setting name in Customizer and keep the data

I created a theme while back when I was new to Customizer API and for some weird reasons I named theme settings as: $wp_customize->add_setting('thefunk_theme_options[header_color] Instead of just ...
1
vote
0answers
46 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
2answers
160 views

How do I handle the “WP_Customize_Cropped_Image_Control” callback?

I want to make a logo manager in the Customizer, but how do I set different image sizes with the WP_Customize_Cropped_Image_Control class? Example from Make WordPress Core: ...
2
votes
2answers
116 views

Widgets panel not displaying in the Theme Customizer

I am using the Theme Customizer to let users customize how their website looks. I noticed on the Twenty Fifteen theme there is a panel for Widgets. I have seen this on quite a few other themes too, ...
0
votes
1answer
20 views

Theme Customizer - Hide / grey out settings based on other setting

Using the Theme Customizer, is it possible to hide / grey out options based on other options? For example, I have a button. There are 3 settings to do with the button - Is it shown (checkbox), Text ...
0
votes
1answer
14 views

Theme Customizer - Text without a setting (a comment or <p> tag)

In the Theme Customizer, is it possible to just have text (for example a comment, or a HTML <p> tag with text), or a setting that has no type (but a title of Text I need to display). For ...
0
votes
1answer
23 views

How can I create a rearrangeable list of items like OptionTree offers with the Theme Customization API?

I have a theme that currently uses OptionTree, I'd like to move to the WP Theme Customizer API. In OptionTree I can have a list of items that can be edited and drag and drop rearranged. Is there a ...
0
votes
0answers
10 views

Customiser suppressing form submissions

Within the customiser, I wish for users to be able to customise certain settings on the search results page. I've created the options, including an active callback to hide them when the user is not ...
1
vote
1answer
104 views

Customiser `active_callback` not working on control with `postMessage` transport method

I have 4x custom settings within 2x custom sections, with the second setting in each section relying on an active_callback to show/hide it. In both cases the active_callback checks the value of the ...
0
votes
2answers
49 views

Customiser sections not being displayed with `active_callback`

I've added several customisation options to my theme, and I'm (trying to) use the active_callback argument with $wp_customiser->add_section(). In the first instance, this appears to be working ...
0
votes
1answer
39 views

Customizer_register not saving custom setting to database

I'm currently trying to work on a WordPress theme based on Sage. The stage I'm at is creating custom controls to display on the customize screen for WordPress where you typically change things like ...
0
votes
1answer
18 views

How to use a WP_Customize_Control outside of the Customizer?

I have a few custom WP_Customize_Control classes that are shown within the standard WordPress Customizer area. These are working fine. Is it possible to pull some of these out of the customizer and ...
1
vote
0answers
49 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 ...
0
votes
1answer
22 views

WP Customizer Fatal Error trying to load class in child theme

I've developed many themes, however, I'm new to building child-themes and "especially" trying to implement classes in child themes. So I've found... Is it possible to load a WP Customizer class in a ...
0
votes
0answers
7 views

WordPress plugin admin html being shown in Customizer iframe

I have a WordPress plugin that is focused soley on the admin side of things. I have a peice of HTML that is shown on all admin pages using the all_admin_notices hook. This worked very well but I ...
0
votes
1answer
29 views

Add post type titles in customizer dropdown list

I want to add the list of my available contact forms (created in contact forms 7) to a dropdown in the customizer. Here is the code I used: function contact_form_list() { $args = ...
1
vote
0answers
21 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 ...
0
votes
0answers
28 views

How to add 'Site Identity' capabilities to customisation for editors

I was able to give most capabilities to editors for the Customisation. However I'm lacking the Site Identity capability. I found this thread How to change in customizer the "site ...
0
votes
2answers
348 views

How to change in customizer the “site identity” tab required capabilities

I'm building a multisite in which site admins have no "manage options" capability. The problem is that withut this cap they cannot see the "site identity" tab in the customizer, where they can change ...
1
vote
3answers
416 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
0answers
32 views

Customizer.js changes not being recognized

I've been experimenting with the Theme Customizer API and I'm trying to set up the live preview for changes made with the Customizer. The setting I use works just fine when using the refresh ...
0
votes
0answers
13 views

Wordpress Customizer - reload controls

I have several controls setup, one of which is a custom multi-select field which allows you to select several different options, based on these selected options I tailor make other sections/controls. ...