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

-4
votes
3answers
204 views

How to store the_post_thumbnail() value in a variable

As you know the result of the the_post_thumbnail() is an image tag. I need this image tag to store at a kind of collection or Array. I'm using the following code but it doesn't help me out. And I want ...
1
vote
0answers
13 views

I am trying to use the Theme Customization API but I keep getting an error

This is the error: Call to a member function check_capabilities() on a non-object in /home/content/54/11786754/html/wp-includes/class-wp-customize-control.php on line 161 and this is my code in ...
1
vote
1answer
128 views

Trigger Customizer saving process with Javascript only

I'm working on a custom theme that uses WordPress Customization API to let the user play with parts of the content of his website, basically the front-page which he can modify by adding/removing ...
1
vote
1answer
18 views

Theme Customization API options on install

I'm working on a theme that use the WordPress Theme Customization API. Everything is working as it should, except on initial theme install. Some of my options need to be set straight away on theme ...
2
votes
1answer
35 views

Edit a different page in WP Customizer

I'm working with Customizer's incredible options, and so far so good, it's really powerful and does everything I want. However, I'd like to extend it, so instead of editing only the main page, I want ...
1
vote
0answers
23 views

How to instantiate customize_save_after callback function?

I have to do some custom operations after settings are saved in the customizer. It looks like the callback function isn't invoked. What am I doing wrong? Something to do with the Ajax status of the ...
1
vote
2answers
332 views

create drop down menu in theme customizer from custom db

what i am trying to do is create drop down menu in theme customizer from custom db i have created. db name "students". in the db i have only the id and the name. i want to show all students names in ...
0
votes
0answers
24 views

Theme Customizer uploads image size issue

I've made an option to allow users to upload a custom background image to their site using the Customize theme section of wordpress but I'm having trouble uploading large (in pixels) images. An image ...
1
vote
0answers
17 views

How to modify default controls in Wordpress theme customizer

I'm trying modify the default control in the wordpress theme customizer specifically the action for the close button. By default clicking it will make you go back to the themes page, but I want it to ...
0
votes
1answer
41 views

add_theme_support('custom-header') does not add the option to customize

I am using this to get custom header support to my new theme: function my_add_header_support() { $ch_defaults = array( 'default-text-color' => '', ...
0
votes
1answer
95 views

“No Data Received” error in Chrome every time i try to update the theme functions file

Under Appearance --> Editor --> functions.php ( Theme functions ), whenever i try to modify a piece of code in it and click Update, i get this "No Data Received" error in Chrome. I never get this ...
2
votes
2answers
53 views

$wp_customize customizer_preview_init not firing inside javascript

I'm trying hook the customizer_preview_init action in order to trigger live preview of the changes I'm making in the customizer. However, my first test is failing. I'm just trying to get an alert to ...
1
vote
1answer
30 views

Customizer: When to use customize_preview_init VS customize_controls_enqueue_scripts

There appears to be some conflicts between the codex and the twentyfourteen theme code with respect to which action to hook to load your live preview .js (ex: customizer.js) In the twentyfourteen ...
0
votes
3answers
57 views

Customize Option Framework

I was trying to create a Option Theme Page for my theme and I wasn't able. Today I found the Option Theme Framework but after some time I really can't understand how to use it. In particular, I'm ...
0
votes
0answers
57 views

Using javascript on the new widget preview / customizer page

Widget customizer has just become core in WordPress 3.9. I'm trying out the beta version hoping to get widgets working on the customize screen in the same way I have on the ordinary widgets page. Some ...
0
votes
1answer
39 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' ...
0
votes
1answer
22 views

Save button in theme customization page stays disabled

Ok here's the scenario: I have added a custom section to an existing theme so that it shows up in the theme customization page (customize.php). The problem I am having is that I don't know how to ...
1
vote
1answer
23 views

Input ordering in wordpress theme customizer

I'm trying to add custom fields to the wordpress theme customizer for the theme that I'm creating. $wp_customize->add_section( 'sometheme_theme_customization_section', array( ...
0
votes
3answers
398 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 ...
1
vote
1answer
113 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 ...
1
vote
0answers
15 views

Binding Serialized Setting to JS for Realtime Response

I'm stuck in a situation. I'm developing a theme where I'm using the wordpress theme-customizer to build the settings page. I'm using the serialized method, something like this: ...
0
votes
0answers
27 views

Best practice to separate translate Backend and Frontend

I currently building wordpress themes, using customizer for almost all part of themes it self. also bundling it with own themes option. i wonder how the best practice to translating backend but ...
0
votes
2answers
50 views

adding checkbox to theme customizer

I have been trying to add a checkbox into the theme customizer. I have a checkbox added using this code in my functions.php function theme_customizer_register_checkbox($wp_customize) { ...
0
votes
1answer
29 views

Theme Customizer - Nested Sections?

Is it possible to put sections within sections at all? It would be very helpful for me to be able to do so due to having several options per section and I don't want the user to be overloaded with ...
0
votes
1answer
16 views

disable lightbox in a plugin [closed]

i'm using the PHOTO ALBUM plugin for wordpress and I would like to disable the lighbox effects - meaning, i just want to show the thumbnails... is that even possible? Thank!
0
votes
1answer
24 views

laoding bloginfo url in function array?

I'm using wp customizer in a theme and I want to load a page using a link in admin bar. Link in admin bar is added, and link format is like this: ...
0
votes
2answers
68 views

How to make CSS load live based on options clicked in the theme customizer?

I have a problem. I am trying get the theme customizer load a different CSS file based on what radio input in clicked, live! It works so far right now that option is saved when I click "Save & ...
0
votes
1answer
36 views

How to enqueue javascript for WP Customize options sidebar?

I'm trying to add Chosen.jquery to the WP Customize options panel, so I can have an autocomplete box there. Is there any way I can do that? I tried with admin_init, admin_footer and ...
2
votes
0answers
59 views

Customizer preview doesn't update get_option() value properly

I have a setting in index.php if(get_option('cb2_blog_home')){ cb_get_blog_links(); } This code allows the home page blog index to be turned on and off. The cb_get_blog_links() function draws ...
1
vote
0answers
43 views

WP_Customize_Image_Control generating error when used

I'm adding some customisation controls for my theme, but I've hit a snag with the WP_Customize_Image_Control class. The control is showing, but whenever I try and upload an image I receive the ...
0
votes
0answers
14 views

Apply `the_content' filter to theme customisation live preview

I'm using 'transport' => 'postMessage' to update the text within the footer area during theme customisation live preview. My problem is that on my website, the corresponding theme setting ...
0
votes
0answers
65 views

Appearance->Editor not visible

I'm noticing that the editor is not visible from past few weeks. It's working fine on my other WordPress sites but in one site it's not visible. I tried changing theme and deactivating plugins but ...
1
vote
0answers
33 views

Is it possible to visually group items on the theme customizer?

My theme customizer is getting bigger and I think from an UX perspective would be nice to visually group some similar items. Is there way to do that? Something like put a divider or playing with CSS ...
0
votes
1answer
38 views

Custom Post Types and Child Themes!

OK here is my question.... I have a professionally purchased theme that has a custom post type of "PortFolio" built into the theme. The post type is ideal for what i'm trying to achieve in the ...
0
votes
0answers
12 views

Is it possible to call the label of a wordpress customizer control?

I could just hard code the label of my custom customizer control. I was hoping someone could tell me if this was possible?
0
votes
0answers
80 views

Customizer - detect iframe load

I'm trying to get the initial styles from WordPress Customizer's iframe but this is what happens: // ATTEMPT #1 var test = jQuery('#customize-preview iframe').contents().find('body').css('width'); ...
0
votes
0answers
25 views

How to control the width of the container in theme customizer wordpress?

How can i control the width of #container in theme customizer through functions.php in wordpress. I want to make a control so i can set the width from 100% to 60% or 30% of my #container How can i ...
0
votes
1answer
72 views

Is it possible to get a theme customizer setting from wp.customize using jquery?

I am wondering if it is possible to directly interop with the wp.customize api to get a value of a theme customizer setting. The way I am doing it now is using ajax to get a response from a php ...
0
votes
0answers
31 views

Customized Upload File Control not saving the files URL as value

I have modified a customized version of the Upload File control so that I could upload mp4 videos and use the media library. The control seems to be saving the videos as 'Array'. After uploading a ...
0
votes
1answer
138 views

WP 3.8 theme customizer error

I'm trying to make some customizer for my theme, but i've got JS error "Uncaught ReferenceError: wp is not defined " LOL. I wrote all code based on Codex, maybe it is just WP 3.8 bug? Or what i'm ...
4
votes
1answer
93 views

Is having multiple theme customizers for different pages possible?

If you have a theme that for instance has a blog, front page and misc pages is it possible to have more than one theme customizer, so that you can provide a live preview when editing styles? My theme ...
2
votes
1answer
215 views

With WP 3.4 customizer, while using postMessage & working within your JS for one option, can you retrieve current value for another option?

I'm currently working with this awesome article by Otto: http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/ For my question, I have two separately registered settings, ...
1
vote
0answers
35 views

remove add new post, if there is already one post

I have a custom post type, but I want to allow only one post. if the user posts then the add new post should should be disabled or removed. so only post is allowed of that custom post type. If the one ...
0
votes
0answers
84 views

How to set any theme setting from a custom WP_Customize_Image_Control?

I am using the Theme Customizer API to upload a logo for a WP theme. I also want to let the user set the css for the logo size via a number input in the same Customizer section. What's the best way ...
3
votes
1answer
75 views

Is it possible to display the admin bar while in the Theme Customizer?

I've been using Debug Bar + Kint Debugger for debugging. Presently I'm working on a custom theme where I'm trying to hook some code into customize_save_after. The code doesn't appear to be running ...
0
votes
0answers
99 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
49 views

Need advice on theme customizer and child themes

I have been working on a theme, initially it only had one design and I made almost all of the front page elements customizable through the theme customizer. Now I would like to offer a few variations ...
0
votes
2answers
1k views

How to Add a Custom Script to Customize.php

I am having a rather difficult time adding a script to the 3.4 Theme Customizer (i.e., customize.php). If I want, I can deregister jquery and add it from googleapi as follows: wp_deregister_script( ...
0
votes
1answer
14 views

Unexpected output using theme customizer

I am setting up a textarea input for theme customizer. It seems to be working well apart from it outputting a line of text above the textarea label which I cannot find where it comes from and why. ...
0
votes
0answers
38 views

does theme customizer need theme-customizer.js

I am just getting into using the theme customizer in WordPress. I found a great answer on this site about adding a slider and I got it working just fine. I was reading in the codex about the ...