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

When deleting a theme, are the theme customizer settings also deleted from the database?

So if I deleted a theme, then changed my mind later and decided to install the same theme again, would the customizer settings I had configured be deleted, or would they be saved so I still have them ...
0
votes
0answers
18 views

How can I add & validate custom registration & edit profile Fields and show value in my profile page?

I already added custom registration & edit profile fields in my theme's template-register.php.I added the following code for costume registration fields: <div class="column sixcol"> ...
0
votes
0answers
7 views

Wordpress Customizer: passing variables within the previewUrl

I'm trying to pass variables to the server within the previewUrl into the wordpress customizer, something like that: wp.customize.previewer.previewUrl( 'http://www.website.com/?construction=1' ); ...
1
vote
0answers
21 views

Radio buttons live refresh in the customizer

I've added a new section in the customizer with a radio button setting with three options. The new setting adds a CSS class to the site header. Everything works as expected except the live refresh in ...
-1
votes
0answers
17 views

How do I target a specific customizer setting from within a custom control?

I've attached an array of settings to a single custom control using $wp_customize->add_control. How do I now reference individual settings within the array via $this->$link()? I'm essentially ...
0
votes
1answer
38 views

How to move Menus customizer section directly under Site Identity?

Is it possible to change the priority of the Menus customizer section so that it is directly under the Site Identity section?
-2
votes
0answers
17 views

How do I remove the sidebar from this whole theme?

It's called Shapely and here is it's download site. I would like to remove the sidebars in general. I want to do it the right away instead of "display: none;" it in CSS.
0
votes
0answers
13 views

How to control or select category layout(4post) from backend

I have layout of 4 posts to show 4 posts in the index and I am using WP_query to display the layout but I want to make my theme more easier by selecting the category from the back-end, rather than ...
1
vote
2answers
34 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 ...
4
votes
0answers
22 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 ...
0
votes
1answer
23 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
12 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
28 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
22 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
26 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
31 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
38 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
14 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
38 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 ...
1
vote
1answer
47 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
28 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
65 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
18 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
23 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
77 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
1answer
23 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
54 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
183 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
41 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
22 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
24 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
27 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
26 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
63 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
68 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
269 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
62 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 ...
3
votes
0answers
17 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
22 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
54 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
23 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
25 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 ...
1
vote
1answer
82 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
40 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 ( $...