Tagged Questions

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
1answer
20 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
27 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
25 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
7 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
0answers
21 views

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

I have created several custom widgets using the default widgets code as examples. The widgets all work fine, and I've been using them in production for awhile. I've been working with the new ...
0
votes
1answer
31 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
27 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
18 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
17 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
31 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
110 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
25 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
44 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
88 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
36 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
23 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
50 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
24 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( ...
0
votes
1answer
63 views

Add new panel inside parent panel in WP Customize?

Is possible, add a panel within another panel. example: First Panel > child Panel > Section > First Setting ... Second Panel > Section > First Setting ...
0
votes
1answer
25 views

Twenty Twelve Author not displaying

I have a WordPress blog. On which I want to display author name with each post. I have tried various plugins but these don't work for me. This is the address of blog: http://altuslift.com/blog/ I ...
1
vote
1answer
87 views

Convert an theme options page to use in customize.php also?

I have developed a theme options page which is a submenu page of appearance. But now i like to know how what i need to do so the theme options are also editable in the theme->customize interface. ...
3
votes
0answers
97 views

Is it Possible to Extend WP Customize JS Methods?

I’m wondering if it’s possible to extend the methods of the anonymous api object in wp-admin/js/customize-control.js. I need to overwrite one of these methods with my own custom logic but I suspect ...
0
votes
0answers
27 views

Define Mutiple Header Images Using the Theme Customization API

The Header Image control from the Theme Customization API allows for a single header image to uploaded and used sitewide. Using this control, is it possible to save to a custom setting to allow for ...
2
votes
1answer
124 views

Make Theme Options Native to Theme Customizer

With the native Theme Customization API it makes no sense to have an independent options panel. So how do I implement my code (below) into the Theme Customizer? Here is the code for my Theme ...
0
votes
0answers
20 views

Using Customizer Options in a Plugin

I am fooling around with the Customizer code for the first time. The end goal will be to add some options to a plugin. I am off to a bad start because even adding the most basic code is throwing an ...
0
votes
0answers
51 views

wp_editor content not being saved when used in a theme customizer option

I am replacing one of the default Customize options for the Formation theme (https://wordpress.org/themes/formation) in order to add the WYSIWYG content editor to it. I've succeeded in removing the ...
7
votes
1answer
145 views

Get entered value of customiser field for live preview

As per the codex, this question an probably any tutorial on the theme customiser out there, you get the value of a customiser field with the following code: ( function( $ ) { //Update site ...
0
votes
1answer
78 views

WP_Filesystem in custom customize control

I'm currently trying to edit the following file so it uses the WP_Filesystem methods instead of direct PHP filesystem calls: google-font-dropdown-custom-control.php My current code looks as follows: ...
0
votes
0answers
35 views

switching theme in WordPress theme customizer control panel

I am working with WordPress theme customizer. My client wants several options in customizer screen like site title, tagline and few other options. i had gone well with above options but i am getting ...
0
votes
0answers
15 views

How to display an error message to the user in the Theme Customizer?

I am developing my own Theme Customizer Control, and I was wondering if it was possible to display an error message to the user. I use the WP_Customize_Image_Control, and I would like to prevent user ...
6
votes
3answers
570 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
2answers
172 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
0answers
10 views

Why this Wordpress page.php file contain the posts loop? [duplicate]

I am pretty new in WordPress theme development and I have the following question about the page.php page contained into templates files (the file that describe the template for the static pages) I am ...
0
votes
2answers
34 views

Why in the static pages of my theme are showing these information?

I am working on a WordPress theme and I have some problem with the pages\posts layout. For example if you go here: http://lnx.asper-eritrea.com/lassociazione/ This is a static page that show some ...
0
votes
0answers
23 views

Getting error when adding customizer field

I am trying to add an extra setting in the Wordpress customizer. Can you add extra settings in the site title & tagline section or do you have to create your own section? This is the code I have ...
0
votes
2answers
82 views

Changes in widget customizer not triggering 'save and publish'

I'm making some of our widgets customiser friendly, so they work on the customise page and support widget previews. Usually when you update a widget the save button becomes usable and changes to 'save ...
0
votes
2answers
65 views

How to work around case sensitivity of HEX values?

Setting up the WP Customizer options, where it only writes CSS to the head if the value is not the default for that setting. BUT... sometimes the customizer will save the HEX value in all caps and ...
1
vote
2answers
267 views

How do I add customize_register action AFTER adding a custom taxonomy

customize_register only works with the customize_register hook, and regardless of what hook I use to add the custom taxonomy, it always happens after customize_register. (I want to loop through the ...
0
votes
0answers
26 views

Make the customiser show all Background Image settings all of the time

How can I make it so that in the Background Image section of the customiser, all options are always shown, regardless of whether or not a background image is selected? The options I mean are ...
0
votes
1answer
285 views

Widgets not displaying in theme customizer

I am developing a new theme and I am using several sidebars in this theme. All works fine, but the widgets are not showing up in the theme customizer section. All widgets are working fine under ...
0
votes
1answer
25 views

Multiple Customizers

So I'm building quite a lot of convenient customization options into the wp_customizer and while it does offer the ability to organize settings into tabs, it still seems to be getting rather crowded. ...
0
votes
0answers
28 views

wp_customizer control default value = 100 - control value

Within WP_Customizer I have two controls for setting the width of the main-column and the width of the sidebar. The default value of the main-column control is 77 and I'd like to set the default ...
0
votes
1answer
75 views

Extend WP_Customize_Control with Multiple Field Control

I'm trying to figure out how to code a custom control but frustratingly all the information I find online points to the same example of creating a single textfield. I'd like to create a custom ...
0
votes
0answers
16 views

List of settings available for get_setting of WP_Customize_Manager

In the Codex for get_setting there are some settings such as blogname: http://codex.wordpress.org/Class_Reference/WP_Customize_Manager/get_setting Is there a comprehensive list of these?
0
votes
1answer
137 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 ...
2
votes
0answers
90 views

Allow anonymous user to access Themes Customizer

i create a themes and use themes customizer, is there any way i can give anonymous user access to themes customizer without ability to save it? it will be very convenience in term of user experience ...
-1
votes
1answer
68 views

Make Customizer Load Specific Page

Is it possible to force the WordPress Theme Customizer to load a specific page? Or a page template? What about sample content. So instead of loading the home page content load dummy content that will ...
0
votes
1answer
25 views

WP Theme Customizer - Responsive Elements

Within WP Theme Customizer, I am wondering if it is possible to allow users to set the size of a thumbnail based on the size of the screen? For example, the user could select (1) for screens above ...
1
vote
0answers
54 views

Get attachment id from WP Customizer

The WP Customizer's WP_Customize_Image_Control returns the attachment's URL, but I need the ID because I want to output the image like this: echo wp_get_attachment_image( $user_logo_id, ...
2
votes
1answer
99 views

Use default value of wp_customizer in theme_mod output?

Is there a way to output the default value of a wp_customize text field type using the echo get_theme_mod (); without actually going in the Theme Customizer, modifying something and then saving it? ...