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)

-1
votes
0answers
21 views

Site showing 500 internal server error

My site is showing a 500 (Internal Server Error) which is disabling me from being able to make my desired customizations to it. I've looked online and tried some of the solutions that I found but ...
1
vote
1answer
15 views

How do I check if user input in a field in the customizer is a number?

Working on my first theme and thinking about adding some options that are specifically numbers like number of menu levels or number of posts to display on the homepage. Is it possible to check that ...
0
votes
0answers
15 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 ...
4
votes
0answers
13 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 ...
1
vote
0answers
23 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 ...
0
votes
1answer
15 views

Get WordPress page Id inside customizer

I'm trying to move to using the WordPress customizer more. I need to find a way to get the ID of the page the user is viewing in the window. I was wondering is this is possible in the customizer? ...
0
votes
1answer
10 views

How to Add new Arguments to custom Control of customizer wordpress?

The problem is that new arguments don't display at customizer. at first, we extend WP_Customize_Control with this class: class WP_Customize_Foo_Control extends WP_Customize_Control { public $...
0
votes
1answer
23 views

customizer live preview layout picker

I'm trying to create a layout picker option using the wordpress customizer. What i've done so far works except for the live preview. when i change an option in the customizer for example left sidebar ...
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 ...
1
vote
1answer
24 views

From where the header-text can be changed in WordPress custom header?

I am developing a small theme as I am beginner. I am setting up custom-header using add_theme_support() function. From there I can change the header image in the front end. Ok, so far is good. Now In ...
0
votes
1answer
28 views

unnecessary request call for js and css after calling wp_dequeue_script

called unnecessary js and css request http://www.example.com/wp-content/plugins/includes/js/jquery.form.min.js http://www.example.com/wp-content/plugins/includes/js/scripts.js orignal it was http:/...
1
vote
1answer
32 views

How to output widget

I have the following code to display widgets in the customizer. function arphabet_widgets_init() { register_sidebar( array( 'name' => 'Social Media button', 'id' => ...
0
votes
1answer
13 views

Make customizer controls get custom setting type value

I've registered a custom setting type to set a site_option rather than option or theme_mod. I've written the appropriate action hooks to make these values save and preview properly, and can easily ...
0
votes
1answer
31 views

Add Social Media icon widget to customizer

How can I add a Customizer widget to add social media icons with links to their social media profiles? To clear it up, I have created a few images with the inspect element. I want to have a section ...
-4
votes
0answers
20 views

How can I create new setting and control with wp.customize.js?

I need to create new settings value on the fly with wp.customize.js api but I didn't find any help about it. How can I create new setting and control (for example, input field for text or image) with ...
1
vote
1answer
32 views

get_theme_mod not working

For some reason I cannot output the color. Everything works, but text_color just doesn't want to output its value. What is going wrong? Back end code (functions.php): $wp_customize->add_setting('...
0
votes
0answers
25 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 ...
3
votes
1answer
50 views

Remove nav_menus from customizer using a theme

Is there a way to remove the "Menu's" or in dev language nav_menus from the customizer? I have tried $wp_customize->remove_section('nav_menus'); but that did not work. $wp_customize->...
0
votes
1answer
17 views

Return value of get_background_color

I want to return the value of get_background_color but that value isn't showing up. <?php echo get_background_color(); ?> I have colors enabled in my customizer, and there is the option '...
1
vote
2answers
21 views

Creating Dependant Text field in Customizer with Checkbox

I'm trying to show a text area in my customizer, only when a checkbox is selected. I followed instruction at this post, but my textarea stays hidden. Any help will be super appreciated! Thank you ...
2
votes
1answer
68 views

How to extend Customizer payload sent when 'Save & Publish' is triggered

By default, customized sent the below payload when the Save & Publish button is clicked. wp_customize:on theme:twentysixteen customized:{"header_color[primary]":"345"} nonce:d2a36386d3 action:...
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 ...
4
votes
2answers
46 views

Display custom_background outside wp_head()

My theme is a very small one page theme which really doesn't need all the scripts, so I've created a few options to remove wp_head() and wp_footer() so the user can choose if they want to enable or ...
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', '...
2
votes
1answer
26 views

Removing pre existing menu item

I want to remove the following items from the customizer menu: However, I already tried a few codes from other Stack questions but with no luck! Is it even possible to remove those?
2
votes
1answer
19 views

Does the customizer support multiple templates?

I only started using the WordPress theme customizer lately and was wondering if it can be used for more than editing the front page. Is it possible to add a template (or page/post) selector to the ...
2
votes
1answer
41 views

add_action customize_register not working

I've been working on this for a long time but can't get it fixed. I'm simply trying to get the function below to work but it's refusing to do that. I have put it in functions.php of my theme. ...
3
votes
1answer
149 views

Editing the custom background CSS

I have added the add_theme_support( 'custom-background'); function to my functions.php but the CSS which will be added to the wp_head isn't the way I want it to be. <style type="text/css" id="...
1
vote
1answer
35 views

Customizer options

I'm currently working on a WordPress theme. The design + functionality is already done and it's activated. But this is my first day of creating themes for WordPress (hello, new friends) and I'm unsure ...
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 ...
1
vote
1answer
20 views

Removing http:// from esc url() for wordpress customizer code

I've been trying to figure this out for a few days now and I've now come to the understanding I need help. I've never worked with the wordpress customizer but have been recently interested in adding ...
0
votes
1answer
23 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
22 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: ...
5
votes
1answer
60 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
1answer
46 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 ...
4
votes
1answer
257 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
57 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 ...
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" ...
-1
votes
1answer
45 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
22 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
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
1answer
66 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
36 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. https://developer.wordpress.org/reference/...
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
24 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
46 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
25 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 ...