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
0answers
7 views

Problem with Navigation In theme no support from Manual Support

Please find below link to our website. We are using the manual theme. citruspay.info/devguide when we click on an item on the home page, it navigates to a page in documentation but then it expands ...
1
vote
0answers
7 views

Utilize customizer nav controls to attach posts to pages

While working on a custom control for the customizer to attach posts to pages I found out that there is already a built-in feature with very similar functions: the nav_menu and nav_menu_item controls. ...
0
votes
1answer
18 views

get_option in header.php not returning value from customizer

I've set up a new section in the customizer called Social Links, under which I've set up an option and text field control called Facebook. Here's the code in my functions.php: // SOCIAL LINKS ...
0
votes
1answer
19 views

How to delete old custom-css-stuff in the customizer-live-preview?

I have a problem in the customizer. I want to see the live-preview from the CSS pseudo-elements and custom_css, too. So I append the <style> in the <head> like this, in the customizer.js: ...
4
votes
0answers
43 views

How to customize a shortcode using the customizer

General context: I have a plugin which implements a widget and I would like to make the widget into a shortcode. The widget has many options some of them mutually exclusive, and it is never good UX ...
0
votes
0answers
11 views

Function has_custom_logo when used in Customizer

I'm attempting to integrate the custom-logo functionality introduced in 4.5 and I'm running into some issues with the Customizer interface. I'm checking has_custom_logo and, if it's false, I'm ...
3
votes
1answer
225 views

Is the theme customizer slowing down my site?

I have built an awesome theme, which is very flexible, because it has 500 settings in the theme customizer. I generate the live css like it says in the codex: function mytheme_customize_css() { ...
6
votes
1answer
49 views

When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?

I'm currently using WordPress's built in Custom Headers to get images for a slideshow on the homepage of my website. For the most part, this has worked as intended; it allows me to upload a set of ...
1
vote
0answers
11 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 ...
1
vote
0answers
17 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" ...
-1
votes
1answer
38 views

Customizer sanitize_callback for input type number

How to sanitize input control with "type" => "number". It would better if somebody actually explain in detail sanitize_callback on customizer.
0
votes
1answer
19 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
22 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
45 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
23 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
22 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
37 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
22 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
14 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
19 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.
-2
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
23 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 ...
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
45 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
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 ...
6
votes
1answer
138 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
19 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
32 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
50 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
31 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
47 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
30 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
50 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
24 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
10 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
32 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
30 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
20 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
40 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
89 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
30 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
15 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
23 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
40 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
19 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
54 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 - ...