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

0
votes
0answers
12 views

Theme customizer: filter a child <select> based on a parent <select>? [on hold]

if it posable to create some function that will allow us to filter a child based on a parent ? somthing like this: <select id="parent"> <option value="1">Group 1</option> ...
0
votes
0answers
7 views

Customizer - extending wp_customize_panel for nesting panels

As the title suggests I'm tryng to nest panels inside panels, so far I've tried extending wp_customize_panel like this: $wp_customize->add_panel( new WP_Customize_Panel($wp_customize, ...
0
votes
0answers
16 views

Customizer API way function is_customize_preview() works only in main page?

Dear wordpress developer, Thanks for create incredible API like Customizer :) but I have little problem. In customizer preview view function: is_customize_preview() when I'm in home page return true ...
0
votes
0answers
11 views

Theme Customiser not live previewing changes on pseudo elements

I've been working with the Theme Customiser API lately and found that pseudo elements are not live updating using the previewer. In my project I have an image containing a transparent overlay using ...
0
votes
0answers
6 views

Using Customizer value outside WordPress

I'm working on a theme which uses a custom PHP script for contact form. The jQuery sends the form data to the script and the script sends the email. There are some parts of the scripts that should be ...
0
votes
0answers
12 views

Uploading Images to Theme Directory via Theme Customizer

I'd like to use the Theme Customizer to move an image into my themes /images directory and rename it to bg.jpg. I've seen this done on the Parallax theme from StudioPress, but I can't replicate it in ...
0
votes
1answer
38 views

Can't wrap my head around this function - any help would be appreciated

OK so I am working on a theme that utilizes the customizer a lot. When you change a color for example, the necessary css gets added to the header, but when you click default, the css with the default ...
0
votes
0answers
15 views

Adding a Theme Customizer Control for Posts_Per_Page

I am trying to add a Theme Customizer Control to change the number of posts shown in my WP_Query posts_per_page, like so... <?php $posts_per_page_option = get_option( 'posts_per_page_option' ); ...
2
votes
0answers
21 views

How can I use a $wp_customize to edit my homepage image slider?

This is my first post here, but I've been doing a bit of searching. I want to use the Custom Theme API to create add a customized theme control to add a new Image to a slider. Here is some of the ...
0
votes
0answers
29 views

wp_query - Modify $query to include duplicate content

I'm setting some featured content through the customizer (it's saved in theme_mod); Using the pre_get_posts hook, I'm retireving the feature pages in this way: ...
0
votes
0answers
22 views

TwentyFifteen color schemes with custom header default-image

I'm writing a child theme off twentyfifteen and customizing the color schemes. What I'd really like to do is change the default custom header image when the user changes the color scheme. This seems ...
1
vote
0answers
29 views

What is the correct approach to deal with css rules that the theme gets from a function

I am trying to change the color of entry-footer in my Twenty Fifteen theme. My modifications in the child theme is overridden because when the website is rendered in a browser, WordPress outputs ...
0
votes
1answer
18 views

Custom JS text area in customizer is being formatted wrong in document

I have created a wordpress theme, in the wordpress theme customizer I have added a couple of text areas where a user can input their own CSS or JS to be added to the head. The placement of the text ...
0
votes
0answers
15 views

removing value in a wp_customize color control?

I can add a setting and a control for the theme customizer using $wp_customizwer->add_setting() and $wp_customizwer->add_control($wp_customize->add_control(new ...
1
vote
1answer
30 views

Skt full width basic slideshow problem

Background: I am making a photography website and thought that skt full width is a good theme for the landing page. It worked out all right. Then I started to get fancy. I wanted my client to be able ...
0
votes
1answer
37 views

Widgets Section not displaying in theme customizer

When in the WP Theme Customizer, my widget management section isn't displaying (i.e. I can't add/change/remove widgets). I CAN, however, add widgets from the Appearance -> Widgets section, just not in ...
0
votes
0answers
18 views

wp_query in form method of widget breaks customizer

In the "form" method of one of my widgets I make a query to offer the user some posts to choose from, like this: <?php $products = new WP_Query( array( 'post_type' => ...
0
votes
0answers
21 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
1answer
26 views

Theme Customization API Changes not Saving

I'm having some trouble using the Theme Customization API for the first time. I'm following a tutorial, but I seem to be doing something wrong. I'm trying to allow users to change text on a page ...
0
votes
1answer
10 views

Customizer: Update Preview instantly when typing into a number input field

Im working on some customizer settings for my theme. Im using chrome. I created a number input field: $wp_customize->add_setting( 'st_opacity', array( 'default' => '100', 'type' ...
0
votes
0answers
59 views

Set image dimension for WP_Customize_Image_Control images

In the customize page for the current theme the Current Header's Choose Image dialog shows - a "select and crop" option But the custom WP_Customize_Image_Control shows only "Choose Image". Is ...
0
votes
0answers
37 views

datepicker works on widgets options page, but not on customizer

I have a widget with a date option field, which works correctly when in the dashboard, but fails to display when on the theme customizer. I declare the field for the in the form() method like this ...
0
votes
0answers
39 views

The 'default' attribute from $wp_customize->add_setting() method not in db?

At theme customization, the values from the 'default' attributes, which I added when calling the add_seting() method within the functions.php, are properly filled in. They are not filled into the db ...
1
vote
1answer
86 views

wp_customize_image_control deprecated add_tab alternative

I have been using add_tab to add a tab in Customizer with default images. It is deprecated and no longer works in WordPress 4.1. How can I create/find an alternative? add_action( ...
0
votes
1answer
78 views

customize-controls.js - extend api.previewer

I want to remove this check -> if ( value._dirty ) from code snippet below, but as it is located in Wordpress core file(customize-controls.js line 1919) I can't edit that, I need to accomplish that ...
0
votes
1answer
25 views

Problem in using Customizer

Looking for some help with a customizer problem. I am using following codes to create a customizer which will allow me to upload an image for topic of the week section. owever, the following codes ...
2
votes
1answer
63 views

Using jQuery to retrieve customizer value

I am trying to use jQuery to retrieve a theme options (customizer) value: $wp_customize->add_setting( 'header_fixed', array( 'default' => true, ) ); ...
0
votes
2answers
105 views

How to get customizer to refresh when using radio buttons control

I have set up a set of radio buttons in the customizer to specify one of several different color schemes (aka style sheets) in my theme. When I select a new color for the theme the preview of the ...
1
vote
0answers
18 views

How to make customizer settings appear only when image is uploaded?

I'm trying to replicate the WordPress core background image customizer settings where the styling settings/controls only appear when an image is uploaded, but can't find a way around it. Is there a ...
0
votes
0answers
65 views

Add Media Library tab to Image upload of Theme Customizer

When creating a custom control in the Theme Customizer to add an image, how do you add a tab for the Media Library in order to select a previously uploaded image rather than having to reupload an ...
0
votes
1answer
40 views

Trouble creating custom sanitization function for user list dropdown

I'm trying to create a custom author info box on homepage which will automaically generate by getting the info from user profile when a user is selected from theme customizer. I followed the code ...
0
votes
1answer
41 views

How to create a theme customizer 'sub' panel?

One of the cool new features of WordPress 4.0 is the add_panel() method. In my situation, i'd like to create a new panel for theme options, that's very straight forward, but is it possible to create ...
0
votes
1answer
44 views

My stylesheet doesn't appear in theme-editor

I don't know why this is happening, but my stylesheet doesn't appear in theme editor. It's only the archive style.css. The another templates appears normally. In the header.php, I'm using this code: ...
0
votes
1answer
31 views

Default Customizer Code

To create a new CUSTOM section in my Customizer I do this... $wp_customize->add_section('logo_section_one', array( 'title' => __('Upload a Logo', 'mb' ), 'description' => __('Use an ...
0
votes
2answers
43 views

Customizer API - Class doesn't exist error

Currently I'm developing WordPress Theme.Within my theme I'm using Customizer API.I added some controls,setting,sections It works. Also, I created new PHP file called ...
1
vote
0answers
9 views

Override customizer values on a per-menu base

suppose I have a few options in the theme customizer, and I might want to show for example 5 different categories listing menus in the site. In the customizer I can set options for all of those, ...
2
votes
1answer
109 views

How to enable “shift-click to edit this widget” functionality on a custom widget?

I have created several custom widgets, modeled from the default widgets' code. The widgets all work fine, and I've been using them in production for awhile. I've been working with the new Customizer ...
0
votes
1answer
60 views

How to copy data from user profile page (profile.php) to theme customizer

i am trying to figure out how to copy data from user profile page (profile.php) to theme customizer. i want to copy some data from some fields, when theme is activated. and stored the data in theme ...
0
votes
1answer
104 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 ...
1
vote
0answers
30 views

Allow guests to use WP Customizer but disable save button

I've seen in some WP demo themes that developers let users to see a theme customizer (allowing to try the customizations) disabling the save button as well. So the question is how to do that in a ...
0
votes
1answer
51 views

How to reset (clear) theme settings

I'd like to reset (clear) theme settings (from customizer) while activating theme. For example a theme by default has red menu, links and links on hover. I use something like this: function ...
1
vote
1answer
50 views

Customizer: Unique identifier that distinguishes which image upload control is uploading an image

In the Theme Customizer, I've got a custom add_action('wp_handle_upload', 'upscale_responsive_bg_imgs') which upscales responsive background images when uploaded from the theme customizer. It's ...
2
votes
2answers
170 views

Add a “loading” notice when Customizer is making changes

I really want to try and add an overlay and "loading" notice to the wordpress customizer when a change is made. For some of my larger theme changes that are made through the customizer, I am using ...
0
votes
0answers
55 views

theme_mod and option type in WP_Customize_Manager's add setting API

The WP_Customize_Manager's add setting API support the type argument: type Optional. Specifies the TYPE of setting this is. Options are 'option' or 'theme_mod' (defaults to 'theme_mod') What is the ...
2
votes
1answer
78 views

Internalize get_theme_mod CSS Into Stylesheet?

This code adds custom CSS selections from the theme customizer. What I hate about this code is that it outputs the style tags directly into the site's html, rather than tacking the selections onto my ...
0
votes
1answer
157 views

get_theme_mod Not Functioning Properly

The code is outputting everything (style tags, div classes, brackets, etc.) except the actual color that I choose. How do I get the actual output (primary_color) to show up? Registering the custom ...
0
votes
1answer
56 views

How to import and export settings from live customizer?

How many WordPress developer are working with live customizer for controlling theme settings? Do you people allow users to import and export theme settings? Any examples or tutorials would be very ...
0
votes
0answers
64 views

Use $wp_customize->add_control to create a selectable “Designed/Powered By” choices select w/ link in footer?

I'm trying to figure out if it's possible to use the Customizer controls to create a "Designed By [name]" dropdown menu, and have it echo out the name of the person/group with their name as a link to ...
0
votes
1answer
63 views

Make single widget area top level in 4.0 Customize Panel

So I have a widget area that, in v4.0, is burried in a dropdown within the secondary Widgets panel on the Customize panel page. Because it's the only widget area it feels rather silly being burried ...
-1
votes
1answer
34 views

Menu is not styled properly and footer as well [closed]

Here I want to remove bullets that is before the menu. Here is my wordpress code for that menu : <ul class="templatemo_menu"> <li> <?php wp_nav_menu( array( ...