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.
1
vote
1answer
16 views
How to check if I am inside the WP Theme Customizer preview?
I have some elements showing on the home page that I do not want to display in the Theme Customizer preview window. Is there a simple check in PHP that I can use for that ?
For example:
<img ...
0
votes
1answer
46 views
change the Theme dynamically
Is there some way to change the page template dynamically using just a url I wanna use it in a demo theme, so for example when the user enters a particular URL ending with for example
...
0
votes
1answer
20 views
Add multiple pages to theme customizer
So that theme customizer over at /wp-admin/customize.php is pretty cool, but it looks like it only lets you customize one page. Is there any way to add multiple pages or other theme template pages to ...
0
votes
1answer
17 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 ...
0
votes
0answers
13 views
Extended image control not showing up in theme customizer
I have an extended image control for the theme customizer that adds in an extra panel and lists images I have hardcoded into the extended control.
Now the issue is that it is not showing up in the ...
0
votes
1answer
28 views
is_plugin_active() returning false on active plugin
So I have the following in an include in my theme file:
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if ( is_plugin_active( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php' ) ) {
...
2
votes
1answer
40 views
Theme Customiser Image Control
I'm aware that one can add a control to the theme customiser to add an image.
This control returns an image URL however, and I need its attachment ID, not the image URL. Where can I intercept or ...
9
votes
2answers
247 views
Settings API vs Theme Customizer
When would it be appropriate to use the settings API, and when would it be better to use the theme customizer?
Having Googled around all morning, I haven't been able to find any well considered and ...
1
vote
1answer
128 views
How to add default images into theme customizer image control?
I am trying to figure out how I can pre-load a theme customizer image control with images I have selected. Is their a way to point the control to a directory so they automatically show up in the ...
1
vote
1answer
67 views
Responsive Images - Generating multiple images from Theme Customizer control upload?
So, after poking around in the code it looks like the filter image_make_intermediate_size is not called by the various WP_Customize_Control() classes at either WP_Customize_Image_Control() or it's ...
0
votes
0answers
12 views
If user removes section with theme customizer I want it to add padding to footer
I added the ability to the theme customizer for the user to remove a section that is above the footer. The issue is when the section is removed it is causing the links in my footer to move up.
How ...
0
votes
1answer
57 views
How to add button to top of theme customizer?
I am trying to figure out how exactly I can add a button to the top of the theme customizer. The spot I am talking about is where the "close" and "save" buttons are. The ones that are above everything ...
0
votes
0answers
40 views
How can I clear the theme mod settings?
Ideally I am looking to add a button to the theme customizer that allows the theme to reset to default settings, although that may be asking for too much in one question so I am wonder if anyone knows ...
0
votes
0answers
38 views
Cant get theme to change footer color through theme customizer
I am having an issue trying to configure the theme I am working on to allow the footer color to be changed. So far all of my other options work so I am geussing it is an issue with the way I am ...
0
votes
2answers
93 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 ...
0
votes
2answers
23 views
Is there a WordPress boolean for “theme_customizer_active()”?
Looking to add an action to wp_head but only if the user is in "theme customizer" mode. Does anyone know if there's a conditional for this?
0
votes
2answers
91 views
Color Options from Theme Customizer API not returning via get_theme_mod()
I am working with the Theme Customizer API and am going crazy trying to find the stored values. The values successfully save and update on the front-end, so they are obviously registered ...
0
votes
0answers
39 views
How to Use Theme Customizer settings for Colors in a Custom Theme?
I've been reading up on the Theme Customizer so I can create a backed for the Custom theme I am building. Based on the tutorials I have read, I understand how to enable the customizer, create new ...
-3
votes
1answer
127 views
How do I change font in Custom Community
Using "use any font" plugin, I've added the Avenir Next family to my site. However I can't get "Common Community" to change fonts whatsoever, regardless of the typeface I'm trying to get it to ...
2
votes
1answer
90 views
Adding a description to theme customizer controls
How could I add a description to $wp_customize->add_control? I've found I really need to include a short description on some of the controls but it doesn't look like it's possible.
I noticed you ...
0
votes
1answer
50 views
default custom background image not saved in database when creating a new site
I am a theme author and the theme I made is used in a multisite environment.
I have added the custom_background feature to this theme, with a default image and everything works as expected : the user ...
2
votes
1answer
78 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
1answer
138 views
Unable to pass variable on theme cusomizer add_settings()
I have theme options saved as serialized data. And I have named the option name by getting theme name.
$theme = wp_get_theme();
$settings = sanitize_title($theme).'-options'; // do not change!
But ...
1
vote
0answers
81 views
Theme Customization API and child themes
I've recently developed a parent theme that makes heavy use of the Theme Customization API. Is there an easy way to port these settings when a user activates one of my child themes? Currently, the ...
2
votes
1answer
135 views
Modify Javascript Configuration Options for Theme Customizer Colour Picker
I've started fully integrating the Wordpress Theme Customisation API into my Wordpress theme and it's phenomenal. One issue I've encountered is that including the default colour picker is great, but I ...
0
votes
1answer
79 views
Get register wp_customize settings in the front end
The customize_register is hooked to wp_loaded which runs on the front end too, but when in the frontend I access the global wp_customize variable, it's empty. I'm wondering, does WordPress removes the ...
2
votes
1answer
141 views
In the new Theme Customizer API, how to send a value from the front back to the admin panel?
I'm digging a bit into the new Theme Customizer API, in particular into the javascript one, and what I find is delighting.
I've managed to add my own custom parameters, and I also have the javascript ...
2
votes
1answer
112 views
Theme Customizer changes are dissappearing when change page
An example option i am using:
// Layout
$wp_customize->add_setting( $themeslug.'_settings[layout]', array(
'default' => 'content-sidebar',
'type' => 'option',
...
0
votes
1answer
474 views
How do I implement the Wordpress Iris picker into my plugin on the front-end?
This question here is asking the same question as I am, but there were no adequate answers nor a selected correct answer so I am asking again hoping if I ask in a more coherent manner I might get a ...
2
votes
1answer
89 views
How to remove the Theme Customization Button from the dashboard and themes options page?
In my Wordpress theme that I've currently been building I do not take advantage of the Wordpress Theme Customization API. As much as I would like too, I've invested far too much time into my own ...
4
votes
1answer
152 views
How WP_Customize_Background_Image_Control is supposed to work?
I'm trying to add a second background image function to my theme customizer with this code.
// HTML Background Image
$wp_customize->add_setting(
'html_background_image',
array(
...
0
votes
1answer
61 views
Initialize WordPress customizer variables
I have recently starting integrating the wordpress customizer into my theme.
Given the fact that i already had a theme options page, i use these values as default values of my new options (in the ...
1
vote
0answers
67 views
How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?
I am using "Allure Real Estate Theme for Placester" wordpress theme, I tried the below three methods but no positive result in realtypointusa.com
I tried in Dashborad-> Appearance-> Menus and ...
3
votes
1answer
68 views
How to Save Different Settings Options Using Settings API and/or the Theme Optimizer
I would like to allow users to save different versions in the options panel using the Settings API and/or the Theme Optimzer.
For instance, imagine that I have styled my site using via an admin panel ...
0
votes
1answer
421 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( ...
1
vote
0answers
63 views
Unset color set in Theme Customizer
I'm building a theme using the Theme Customizer and have a few options with color pickers. It seems as though once you set a color using the color picker, there's no way to clear/remove/ unset it, is ...
5
votes
2answers
337 views
Theme customizer - settings order
If I add more than 5 Settings to a single section, the order of the settings gets weird.
For example:
// Link color
$wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color1]', ...
1
vote
3answers
323 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?
5
votes
1answer
99 views
Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
I've been using the new theme customizer and it really has me thinking how awesome it would be to allow potential theme buyers/clients etc to play with the customizer for a demo theme (without being ...
1
vote
1answer
106 views
Way to check if we are in Theme Customizer mode? [duplicate]
Possible Duplicate:
How to execute conditional script when on new customize.php (Theme Customize) screen
Is there a Conditional Tag, or any other method, that we can use to check if we are ...
15
votes
4answers
1k views
How To extend WP_Customize_Control
I'm looking for a way to add a new kind of control to the customize live preview panel. I have seen how to add new sections to the panel using
add_action( 'customize_register'...
The control I want ...
0
votes
0answers
244 views
customizer.php redirects to login page
I am trying to access the customizer (WP 3.4) via the frontend (no wp-admin/customizer.php). I need this for a wordpress multisite installation where the individual site owners don't have access to ...
2
votes
1answer
156 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, ...
11
votes
2answers
426 views
New WP_Customize API - how does it work under the hood?
I noticed that if you make changes trough the new "customize" feature, when you navigate on a different page within the iframe preview document, your changes still apply, even if they are unsaved.
It ...
2
votes
1answer
201 views
How to execute conditional script when on new customize.php (Theme Customize) screen
The new "Customize" theme screen is a welcome addition in WordPress 3.4, however, I find it conflicts with my method of loading scripts loaded in the footer:
In functions.php
if(!is_admin())
{
/* ...