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
vote
1answer
26 views

Default header image does not display

Clarification: My default header image will not RE-display (by clicking suggested image) after it has been removed using theme customizer "Hide Image" option. I added theme support for Custom Header ...
1
vote
5answers
96 views

Running JS after theme customizer finished initialization

I have a piece of JS code that I use show/hide customizer control groups depending on a select item value. The code was working fine until recent wp update (not sure which version first broke this). ...
0
votes
0answers
19 views

Using Customizer value in an external PHP file inside a theme

I'm working on a theme for a company and they don't want the users to touch the code at all. So as I love, they asked me to use Customizer API. Now, there's a PHP file in the theme which we don't ...
2
votes
1answer
505 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
2answers
844 views

Passing array in add_option()

I have to create a option page in my custom theme wordpress. here is is a sample of code <?php function bguru_register_settings(){ $default_options=array( ...
0
votes
1answer
375 views

Customizer Issue, Default Settings not working

I have a class for handling customizer code, where I am adding a lot of color options. I have trimmed a bunch of repetitive parts out so it is not too long ;) My issue is I cannot figure out why the ...
2
votes
1answer
61 views

How to get control choices from $setting object passed to sanitize_callback

Example Code Working with the Customizer API. Setting added (example) like so: $wp_customize->add_setting( 'theme_oenology_options[' . $option_parameter['name'] . ']', array( ...
0
votes
0answers
12 views

Theme Customizer not recognizing Widgets

First of - i do not know much coding, though i do learn quickly and am looking to get this issue sorted ASAP. I am sure it is something simple. When i load up my site in the Wordpress Theme ...
1
vote
1answer
559 views

Theme Customizer – Conditional Controls

I would like to dynamically add / remove Controls to/from the theme customizer without completely reloading the customizer page. For example when I choose option1 from a drop down I want control A to ...
7
votes
4answers
2k views

get_option() vs get_theme_mod(): Why is one slower?

I've been using get_theme_mod() for some time in various projects of mine. I decided to take advantage of the Theme Customization API in WordPress v3.4 once it was available as I felt it was an ...
0
votes
1answer
13 views

Access preview settings in php

I'm working with the customize section of my theme framework. And I'm trying to get the preview settings in PHP when using refresh, but I only know how to access the saved settings. Short Story I ...
1
vote
2answers
521 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
1answer
117 views

How can you change default color scheme in a Twenty Fifteen child theme?

Right now I am editing a Twenty Fifteen Child theme (Five Beers to be exact) and I'm wondering if there is a way I can add my own color scheme to the customizer and make it the default color scheme. ...
0
votes
1answer
54 views

Change the location of add_theme_support( 'custom-header' ) in the customizer

I'm using add_theme_support( 'custom-header' ) to upload images for an image slider. The slider also has other settings in the customizer (duration, fade, overlay color, etc). Because there are ...
0
votes
1answer
40 views

where to change text for header?

on the twentyfifteen theme. When I click on the customizer to set my header, There is some text there that says. "While you can crop images to your liking after clicking Add new image, your theme ...
4
votes
2answers
144 views

Allow anonymous user to access Themes Customizer

I created a theme and use Themes Customizer. Is there any way I can give anonymous users access to the themes customizer without the ability to save it? It will be very convenient in terms of user ...
0
votes
0answers
10 views

Properly pass query args to customizer

I am trying to pass some data to the customizer so that I can query a specific set of data from the database by ID. It appears that customize_register fires twice and returns different query ...
0
votes
3answers
82 views

Remove Customize Background and Header from Appearance admin menu without CSS or JS

I am trying to remove background and header from appearance menu, but they don't seem to go away! I think it's because I have activated customize, but can I remove them anyway without using CSS or JS? ...
1
vote
2answers
314 views

One button to change all settings in theme customizer?

I have been attempting to create a theme reset button for the theme customizer that automatically removes all of the theme_mod settings. I have tried multiple ways to do this and have never been able ...
1
vote
0answers
9 views

WP Customizer - Prevent live preview

How do I prevent a widget being updated in the customizer preview if a widget field fails a JS validation check? More generally, is there any actual documentation for the customizer JS API? (I mean ...
3
votes
2answers
42 views

Get all registered wp theme customizer sections?

Is there a way to retrieve all the registered customizer sections? I'm building out a custom customizer and don't want other plugin or themes who register custom sections to appear on this page. I ...
0
votes
0answers
59 views

Add search box in Bootstrap slider carousel

I'm using the Wordpress theme 'evolve' which uses a Bootstrap slider on the front page with a 'Learn More' button on it. How do I add a search box instead of the 'learn more' button which will ...
1
vote
0answers
44 views

How to overwrite JS variable with wp_localize _script?

The function wp_localize_script( $handle, $name, $data ); does not work when trying to overwrite the same variable, that is when calling the function second time with the same $handle and $name but ...
2
votes
0answers
39 views

SSL breaks customizer: page isn't returned from ajax

I have a WordPress install using a Comodo SSL certificate. I have the WordPress HTTPS plugin installed and I'm using the AZ theme, and the admin is set to load over HTTPS. So far so good. On the ...
1
vote
3answers
53 views

PHP files included in functions.php don't seem to work

This is my first post on WordPress StackExchange, I'll try to be precise. My question is: Is there anything in particular I should do to the files I'm including in my theme's functions.php file? ...
0
votes
1answer
134 views

Use SCSSPHP to compile Theme Customizer Values into .SCSS files ready to compile to CSS

I've been having trouble Automatically Compiling my .scss files into my main WordPress style.css file. I'm using Leafo's SCSSPHP script and trying to achieve a few things. i'm using Kirki ...
0
votes
0answers
25 views

Using Conditional Themes to change out different themes using the Theme Customizer radio Buttons

I've been trying to change my theme based upon a radio button selection from the theme Customizer. I've included this plugin -> https://wordpress.org/support/plugin/wp-conditional-themes as a file ...
0
votes
2answers
36 views

Overwrite add_image_size defined by theme

I bought a WP-Theme which defines a custom image-size in his theme-functions.php like this: if ( function_exists( 'add_image_size' ) ){ add_image_size( 'tie-small', 70, 70, true ); } As you can ...
0
votes
1answer
960 views

Theme Customizer Custom Background / Header Image

I'm working on a theme with some options to change the design. For the options I am using the Theme customizer. With the theme customizer there are many option types like color, upload, image upload, ...
0
votes
1answer
79 views

Theme Customizer API Live Preview

I'm having some trouble with getting the text that I type in the input field to appear on the page whilst I type (live preview). When I hit save and refresh, the changes are saved, they just for some ...
0
votes
0answers
16 views

HTML output via Theme Customizer is not working

Well here I am again with a problem that I just can't seem to figure out. I have searched and searched, found answers but I just can't seem to get this to work. I have a theme called WP-Forge and it ...
0
votes
0answers
16 views

Problem with customizer setting with $id containing 'widget'

I'm having a very weird problem with customizer add_setting function when using an ID containing the word 'widget' in the ID; The changes doesn't apply, it's like 'widget' is a restricted word. ...
0
votes
1answer
282 views

How to integrate plugin in Wordpress theme

I have read that there are two ways for integrating a plugin on a Wordpress theme. I think the first method is the best; but I do not know exactly how to do it... After copying the plugin to the ...
0
votes
0answers
24 views

Places all menu pages in the homepage

Well, it is a little weird... you know that menus normally show you in which page are you, changing the colour of that page and we you go to a different page you will see the colour changes to that ...
8
votes
1answer
172 views

Customizer JS API

Okay so I have been trying to educate myself to create new panels sections and controls dynamically using customizer's JS API. It has been frustrating few days and I was unable to get the exact way ...
0
votes
0answers
12 views

Theme Customizer for only author.php (per user baisi)

How the Wordpress Theme Customize can be used only for author.php and settings will be saved per user basis. By which every user can customize their own author.php. How it can be achieved? Thanks.
0
votes
1answer
23 views

How do I get a parent theme modification from a child theme?

I've built a child theme, and I would like to reuse some of the settings created by the parent. I hoped this would be as easy as get_theme_mod( 'setting' ) inside the child theme, but that returns ...
1
vote
1answer
45 views

Add custom background to div in home page

I want to have featured image on specific div on home page that could be changed in customizer. I saw in documentation custom background for body(https://codex.wordpress.org/Custom_Backgrounds) But I ...
0
votes
0answers
26 views

How to disable the customizer?

I don't want anyone with the role below 'editor' from using the customizer. I still want them to be able to edit/change widgets and the menu. How can I do this please? My code so far, but it stops ...
0
votes
1answer
72 views

I am Looking to append URL Parameter to all URLs

I am trying to add URL parameter to all the URLs of Wordpress website. This is for tracking affiliate sales by tracking links. E.g. I have put a link on another website ...
1
vote
1answer
72 views

How to create dependent field in Customizer?

I am trying to have dependent field in Customizer. One field is checkbox Enable Custom Excerpt Length. Another is text field Custom Excerpt Length. I want to implement contextual field using ...
0
votes
1answer
37 views

Create Customization Controls from Array

Coming from a Javascript background and humbly jumping into WP dev I'm having some trouble with PHP (especially in a WordPress context). Here's what I'm trying to do: Create controls for the ...
0
votes
1answer
13 views

No option to select home page in theme customizer

My Website was working fine until yesterday and today when I tried to open it it was showing me the recent posts page not the page I set as home page. Tried to change the setting from Theme Customizer ...
0
votes
4answers
1k views

Theme Customizer not loading JS for live preview

I am currently working on adding options to the theme customizer. For the last two hours I have been trying to get the live preview working and I am trying figure out why my theme isn't loading the ...
2
votes
4answers
3k views

How do I remove a pre-exising customizer setting?

My theme doesn't use the tag line, how can I remove it from the customizer?
0
votes
1answer
65 views

customize_register with Multiple controls/settings - how to get values?

PHP newbie here, and I have this on my functions.php function mcs_social($wp_customize){ $wp_customize->add_section('mcs_social_handle', array( 'title' => __('Social Network ...
1
vote
1answer
48 views

Using Theme Customizer Built-In Sections

The WordPress Theme Customization API indicates that there are a number of existing pre-built customizer sections available for the theme developer. If you want to use any of the existing, ...
0
votes
0answers
24 views

Disabling and enabling content using Customizer

I have a form at the bottom of my Wordpress theme that I want to give the user the ability to disable. I'm not sure if I should install it as a custom plugin or create a section within the Wordpress ...
0
votes
0answers
50 views

How to tell theme customizer to save setting in my option table?

Default customizer is saving the options inside theme_mods_themename but my I am using Unyson options framework and my options reside here fw_theme_settings_options:themename I am able to use ...
2
votes
1answer
1k views

How to use rgba color from theme customizer color picker

I'm creating a wordpress theme and in that I am using the theme customizer to allow users to change the accent color of my theme. Now everything is working fine but few of my elements need to have the ...