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
17 views

Output values from Customizer isn't working

I'm trying to merely output the value from one of the fields in the Customizer. This is the code for creating the setting and its control (it's in functions.php for the current theme): <?php ...
0
votes
0answers
21 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
1answer
32 views

How to filter customize_loaded_components from a theme?

I have written a WordPress theme which uses the customizer a lot. I would like to de-register the widgets panel (I have my reasons). Currently, I'm doing this: /** * Our class for altering the WP ...
0
votes
1answer
18 views

WP 4.5 hide core customizer sections

Since WP 4.5 the way you hide core components from the customizer was changed. Changed from $wp_customize->remove_panel() to customize_loaded_components. ...
0
votes
0answers
13 views

Update get_page_templates function to pass template filename into select option value [duplicate]

I am using the following function to pull page templates into a select menu in WordPress' Theme Customizer: function get_page_templates_select() { $teh_cats = get_page_templates(); foreach ( ...
0
votes
1answer
18 views

Load get_page_templates into select menu

I am using WordPress' Theme Customizer where I would like to add an option for the user to select the page template used. Here is the code to get the page templates. This is the section that needs ...
1
vote
1answer
28 views

Using WordPress' Theme Customizer to select page templates that update layout in the preview

I wasn't sure where to post this question.. I recently discovered WordPress' "Theme Customizer" and am using it to make the pages easier to update for clients. Rather than the standard way of editing ...
0
votes
1answer
20 views

How to transfer one domain to another domain without losing theme options (customizer)?

I have developed the one wordpress site with custom theme, Here I used the custom customizer options. Then site completed on my local machine I mean localhost (http://127.0.0.1/wordpress). Now the ...
0
votes
0answers
8 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
1answer
13 views

How to enable shortcodes in text retrieved from get_theme_mod

Is there a way to enable shortcodes in text saved in the customizer and retrieved using get_theme_mod? I'm guessing there's a filter in a similar manner to enabling shortcodes in widgets.
-1
votes
0answers
13 views

wordpress demo theme customization

https://selademo.wordpress.com/ I want the above layout for my website and i have the demo version of this theme which has some limited layout. How easily i can extend this demo theme to be like the ...
0
votes
0answers
20 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 ...
-3
votes
0answers
21 views

wordpress - theme customization - healing-touch [closed]

I have downloaded a theme from WordPress.org site and I have created a child theme on this. Now I have style.css for this. My requirement is to customize this as per my need. I am facing issues on ...
0
votes
1answer
14 views

Missing hashtag with theme customizer header color

I'm trying to add a color to my theme for the <h2> tag on my website. But now I've got the following problem: The hashtag is missing before the color. So I get 000000 instead of #000000. It ...
1
vote
2answers
33 views

Partial refresh of menu in customizer not working?

WordPress 4.5 supposedly enables live refresh of the menu in the customizer, though I cannot get it to work. If I reorder the menu (in customizer) I see no changes until I perform a manual refresh. ...
0
votes
0answers
8 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 ...
6
votes
1answer
106 views

How to adjust the Device Preview sizes used in the WP 4.5 Customizer?

WP 4.5 introduced the Device Preview in the Customizer and it's pretty easy to use. Click one of three icons and see your site at various (predetermined) sizes. The desktop version will always fill ...
0
votes
1answer
15 views

WP Customizer: Save a control state

I am trying to implement an equivalent control to the default custom background that wordpress provides. If an image is inserted, it activates a couple of other control (eg. repeat, position etc.). ...
0
votes
0answers
26 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 ...
1
vote
1answer
48 views

wp_customize - detect post type to show/hide customizer options

How can I tell the customizer to only load certain customizer options based on the post type that is being previewed? i.e. using: is_woocommerce is_shop is_cart etc. When adding customizer option ...
0
votes
2answers
21 views

can we add more then one control under a setting in WP theme customizer?

In wordpress theme customizer, we need to define a setting to add a control. My question is can we add more then one control under a setting? If yes, how to access the values of those controls. In ...
0
votes
1answer
41 views

WordPress Customizer Help with FontAwesome Icon

Here's the scenario - I want to select fontawesome icons from the dropdown list but it's not working. For some reason the class inside span is not adding up (I have tried jQuery().append(), CSS) but ...
0
votes
0answers
23 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() ...
1
vote
1answer
38 views

Why does get_theme_mod return blank (or default value) but get_option returns saved value?

Why does get_theme_mod return blank (or the default value if specified) but get_option returns the correct (saved) value? I have a colour picker in the customizer color-primary which functions ...
1
vote
0answers
23 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 ...
0
votes
1answer
14 views

Customizer_register theme options not saving

I'm trying to add a phone field to a theme's customizer, so far, I was able to add the field in the customize page, but for some reasons, it won't save, whenever I save and went back to check it, the ...
0
votes
0answers
9 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. ...
1
vote
1answer
30 views

Get img alt tag from a Image that has been uploaded through the Customizer

So inside this theme I'm making for a client there is a section inside the customizer that allows them to change a header on each individual page, my question is how do I fetch the alt tag of that ...
0
votes
0answers
27 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
2answers
19 views

Use customizer or sidebar for header settings?

I'm converting html into Wordpress theme. In the header I have a tel number and a button. Both are links, but styled differently. Do you think it would be better to make them a sidebar (widget area) ...
0
votes
1answer
38 views

How to use WP Theme Option: Custom_Backgrounds on specific element?

I want to use the WP Theme option Custom_Backgrounds on a specific div. By default it adds it to the body and I dont see a way of changing this. Does anyone know how?
3
votes
2answers
72 views

How to change the themes “Live Preview” url within the Appearance->Themes page?

I need a way to change the themes "Live Preview" url within the Appearance->Themes page? I want the themes thumbnails to link to a demo site showcasing the theme and not open the customizer. I looked ...
0
votes
0answers
23 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
14 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 ...
1
vote
1answer
22 views

Is accessing theme and using customizer GPL distribution?

I am theme developer and I want to make a "demo" website, where people to which I give password will have access to nearly all theme functions (except theme editor) -> they won't have full admin ...
0
votes
0answers
12 views

Theme Customization - “Save&Publish” not working

I have written two classes for customizing a footer text and a facebook url on my page, everything look ok and working when changing values in Customizer. When I try to hit "Save & Publish" ...
0
votes
0answers
10 views

Using AJAX tab causing error in customizer preview

My homepage is using jQuery-ui's AJAX tab feature, but apparently this feature made a mess at the customizer's preview page. The following pic is basically what's showing at my customizer page right ...
0
votes
0answers
33 views

Customizer Api: Load settings and controls from dynamically generated array

I have a front_page setting like so: $wp_customize->add_section( 'front_page', array( 'title' => __( 'Front Page' ), 'priority' => 120, ) ); I am trying to allow the user to do ...
0
votes
0answers
15 views

How to hide a Control in the Customizer?

I know contextual controls hide if for example the user navigates from the viewer certain pages. But how can I achieve hiding a control under this scenario: There is a type Select Control with an ...
3
votes
2answers
52 views

Theme option : having the ability to select among several predefined headers

I'm in the process of creating my first theme, and I'm using Quark as a starter theme. I would like the theme to have various options, one being header selection. (let's say 5 different headers - ...
0
votes
1answer
95 views

Theme Customizer - Javascript (jQuery) update using `.load('file.php')` - Fatal Error: Call to undefined function

MY SETUP (AND CODE) Wordpress Version 4.4.3 (Latest at time of writing) Installed on a local server using XAMPP I am using the WordPress Theme Customizer, and updating settings via Javascript ...
1
vote
1answer
192 views

Widgets not working in Customizr but working in Appearance

I'm having some trouble with my widgets. I've registered widget areas correctly; as the widgets are showing up in the "Appearance" menu. However widgets aren't showing up in the Customizr section of ...
2
votes
0answers
45 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 ...
1
vote
1answer
39 views

Sidebar not show customizer!

It's showing widgets.php: Not showing customizer: sidebar.php function footer_sidebar() { register_sidebar( array( 'name' => __( 'Footer Sidebar 1', 'footer1' ), ...
1
vote
2answers
63 views

Checking if there is an Image inserted - if not don't display anything

So within my Customizer I have a section that controls this Slider on the Homepage - the thing the client might not want to use all the Slider Images but all the Sliders still show anyway and the ones ...
0
votes
1answer
20 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 ...
1
vote
2answers
23 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 ...
2
votes
0answers
73 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
0answers
21 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 ...
2
votes
0answers
40 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 ...