Questions tagged [theme-customizer]

The Customizer is a framework for staging changes in WordPress. Settings may model anything in a given site (options, theme mods, widgets nav menus, posts, etc.) and the changes are bundled into changesets which are then previewed, saved as drafts, and even scheduled. Themes and plugins alike may extend the Customizer. Questions should be posed related to the Customize API in WordPress, in either PHP and JS.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

wp.customize is undefined in customizer scripts

I have some scripts I am loading in the customizer like this: add_action('customize_controls_enqueue_scripts', function() { wp_enqueue_script('jquery'); wp_enqueue_script('json-editor', 'https:...
0
votes
0answers
11 views

How to add dependency to customizer input field depending on previous selection?

I have created a customizer that creates buttons for the front page banner. There is the option to select 1 or 2 buttons. I want the fields for the second button to be hidden if it's not selected. // ...
0
votes
0answers
19 views

Can I add customizer to a custom made wordpress theme and have those styles in a CSS file?

I would like to make my colours, logos, and hero images all dynamically changable using my customizer.php. I haven't played around with customizer much, but understand I need to use php to store the ...
0
votes
1answer
7 views

Removing element from DOM with jquery through plugin Custom Scripts for Customizer

This is my first post. I have the plugin powerpress loading an external image from an unsecure source that causes mixed elements so the page is not fully secured and I get the message "not fully ...
0
votes
1answer
15 views

Why does wp_customizer default values do not apply when theme is installed for the first time?

I am creating WordPress themes, when i install theme on another site / domain, the default values added under wp_customizer do not apply for the first time when theme is just installed. When i go to ...
0
votes
0answers
12 views

Add custom control though JS customizer API

I have tried to add controls through JS customizer API. It is not working for the custom controls where as WP controls like text, number it is working fine. api.control.add( new api.Control( 'my-...
0
votes
0answers
17 views

How to register controls/settings and partial refresh from Javascript?

I have managed to convert sections/panels/controls from PHP to javascript. When I am registering custom controls through JS it was not working and not sure about the settings and partial rendering. ...
0
votes
2answers
44 views

WP 5.5, child themes, customizer and a weird cache issue

Update: I created a fresh new installation of WordPress, copied both Base and Base Child themes and activated Base Child. The Appearance/Customize gives the same white screen as described in point 1 ...
1
vote
0answers
78 views

wordpress customizer - pass setting value into another control to live update dropdown choices

In the wordpress customizer script I am trying to pass the value from a select control into a custom control that displays taxonomies associated with the selected value (1st control). - ...
0
votes
1answer
11 views

Can't Customize Wordpress Page

When I click to customize my page, I get the spinny wheel. I've tried restoring to previous days on my site, but am having no luck. Thank you for your help.
0
votes
1answer
37 views

How to disable cropping of the site icon?

Is it possible to disable the cropping step when adding a site icon via the Theme Customizer in WordPress 5+ (occurred to me in 5.5)? For me cropping is unnecessary because I always upload a square ...
0
votes
0answers
7 views

Edit with elementor not working!

i use elemetor based theme and now the edit with elementor option doesn't work. But when i change the slug of the page it will work. but within the old slug it will not. what is the issue? anyone ...
0
votes
0answers
11 views

how to change demo theme

I purchased the high end theme and imported 3 demos (Main, Bloggera and Presentation). How do I change from one template to another? Only the Bloggera is appearing.
10
votes
1answer
183 views

Add settings to menu items in the Customizer

WordPress 5.4 added the wp_nav_menu_item_custom_fields_customize_template hook to add custom fields to the Nav Menu Item settings in the customizer. I've figured out how to display the additional ...
0
votes
0answers
4 views

Wodpress Customizer Selective Refresh Div with respective Javascript and Localized data

There is a div with the selective refresh which is having a javascript to make some changes. As due to selective refresh HTML is dynamically updating hence respective javascript stops working as it ...
0
votes
0answers
9 views

Are there Wordpress user capabilities needed for the customizer?

I'm creating a theme for Themeforest and in their requirements they say that I should use the functions current_user_can to determine if the current user has certain capabilities. For me this would ...
0
votes
0answers
9 views

Using the feature image as a header for each page including blog page

I'm using the Featured image of each page to show that as a large header image. In the Header image I have: <?php if (has_post_thumbnail()): ?> <div class="header-image-...
0
votes
0answers
8 views

I want to add two side bar in theme template

Right now I am using bimber theme which is not support two side bar. So I am customizing theme template but at a time only one side bar is displaying. I want to customize template which would two side ...
0
votes
1answer
21 views

Site Tagline ended up in permalink

When I added a custom tagline for my site in Customizer it made that tagline part of the permalink without my realizing it. I have turned off the tagline. It does not appear in the permalink settings ...
1
vote
1answer
40 views

How do you approach block structured content?

I'm currently trying to learn how to create a custom wordpress themes and while the documentation is pretty great there seems to be a lot ways to implement things on your website. What I'm struggling ...
0
votes
1answer
7 views

Image Uploaded To Customizer Not Displaying

I have added a section in my customizer to upload a background image for my main site. I am calling it here: .header_wrapper{ background:url('<?php echo get_theme_mod( 'header_image_uploaded', '...
0
votes
1answer
27 views

How can we upload file to root directory of wordpress

I'm working on wordpress project, Theme have some demos i've added add_menu_page where all of the demos stored e.g pictures and names, I know the REST-API where i've added condition if theme license ...
1
vote
2answers
33 views

Custom Script Section Only Echoes Text

I have a custom script section in a theme I'm creating that is only echoing the verbatim text, rather than treating it as script & I'm not sure what I'm doing wrong. I thought at first that it may ...
0
votes
0answers
18 views

Cannot Get Customizer To Display Custom Sections

I have been working on this for a while now and just can't seem to get my custom section to display in my Customizer. I just need a few basic settings and controls to run on my site, but it's not ...
0
votes
0answers
18 views

Customizer API Multi Sections in single Panel

I'm trying to build up a multi sections Customizer in wordpress and when i add the third section in a single panel the first section is set to display: none don't know what seems to be the issue. If ...
0
votes
1answer
19 views

customizer not working when ever i activate ssl

when ever i activate my free ssl from cloudflare my websites customizer not working it is showing me blank page. please help. screen shot Console Screen shot:
0
votes
0answers
7 views

Product Short Description for Group Product

Is it possible to add short description of each product in a Grouped Products? Can we add a Quick view option of each product in a Grouped Product? Clicking on each product Title will popup Product ...
0
votes
1answer
23 views

How to dynamically set a background image with the customizer without putting the css as an inline-style

Here is what I am using currently, <div class="home-header" style="background-image:url('<?php echo get_theme_mod( 'home-header-img' ); ?>'); height: 500px; width: 100%; ...
0
votes
0answers
12 views

WP_Customize_Cropped_Image_Control not cropping properly like in custom_logo

I have an issue with WP_Customize_Cropped_Image_Control, I added it for mobile logo and everything great, except when I try to crop the image in customizer, height and width are depended on each other,...
0
votes
0answers
12 views

Custom CSS ace editor not loading on Theme options?

I am trying to edit a theme and it is using Custom CSS. However the Custom CSS input is not rendering for me in the admin You can see in the screen shot the Custom CSS section says "adding it to ...
0
votes
0answers
16 views

WordPress Customizer - How to Store a Unique Value in a Single Input Field for Each Page?

I have a single input text field in the WordPress Customizer. I want this input field to hold a simple string of text, but the text will be unique for each page. The text is essentially a unique ...
0
votes
1answer
26 views

How to get an array with all categories and corresponding names?

I want to create a selector control in the Wordpress customizer with all the existing categories and for that I need an array with all the categories and their names. I need to get an array like this: ...
0
votes
0answers
15 views

PostMessage - initiate a refresh and then add a class to an element

I have a some controls in the customizer for which I want to use the a postMessage. The postMessage should do the following: Refresh the preview. Add class menu_open to .amb-header. I have created a ...
0
votes
0answers
9 views

Customizer option in page URL for preview

I have 3 footer position in the customizer and I want to show their preview by links. 'mysite', array( 'type' => 'radio-image', 'label' => esc_html__( 'Sidebar ...
0
votes
0answers
11 views

Pure JS based fast customizer

Is there any doc to extend custom controls in pure js? Also, is there any way to or tips to make customizer faster like UI/UX way.
0
votes
0answers
32 views

WordPress Customizer Control with React

I am just doing a demo on the WordPress customizer API to edit the header with custom controls. I have designed a custom control by extending WP_Customize_Control and Jquery to refresh/postMessage ...
0
votes
0answers
15 views

Add a “add item”, and a “remove item” button to a custom WP theme customizer panel item

I have several questions regarding the WP Customizer Panel. I'm new to web design and have been self teaching how to build a WP website. I'm not super familiar with WP functions, js or jquery and have ...
0
votes
0answers
16 views

Output custom added customizer CSS as inline style

I've added custom CSS panel to my customizer to output it after my theme style as inline style. Here is my customizer code - $wp_customize->add_section( 'critical_css', array( '...
0
votes
0answers
18 views

Hide certain theme options under customizer for certian user roles

I'd like to hide only certain theme options from certain logged in users (editor role). What do I need to add to the below? The below works but also removes it for the Admin user. I would like to deny ...
0
votes
0answers
40 views

how to sanitize customizer checkbox control

When trying to use a sanitization callback for a value which I would like to store as boolean, I keep getting an error in the Customizer saying "Invalid input" for a checkbox (the error appears almost ...
0
votes
0answers
12 views

how to change footer quick links menus(Primary menu) for certain pages

Need to change Footer quick links menu and footer tagline for certain pages only we have working on School site it have both higher secondary school pages and nursery school pages if we click the ...
0
votes
1answer
18 views

Widget not appearing in customizer

Hello I have a theme installed but on the homepage the homepage content widget section does not appear in the customizer view. I have it set on the wp-admin themes settings but when I go to the ...
2
votes
0answers
73 views

How to extend nav-menu-item-control data in Appearance > Customize?

I have one question as for Nav Menu Items custom fields in the Appearance > Customizer screen. Since 5.4. there are 2 new hooks: wp_nav_menu_item_custom_fields - it works for Appearance > Menus ...
0
votes
1answer
16 views

Initials of email looks strange on Wordpress Website

My website based on wordpress platform is acting strange. To be noted, that i bought the theme, and implemented it, I am not an expert developer. The major thing I am facing is the email format, like ...
0
votes
0answers
13 views

moving sections around on wordpress themes that contain sidebar toggles

I am trying to edit a wordpress theme's home page and despite looking hrough some of the php and java acripts as well as searching for the Div classes in all files can not figure out how the theme is ...
0
votes
0answers
14 views

How can I edit a php custom page template to work in other themes?

How do I edit a php custom page template to work in another wordpress theme? Do I just have to take out the header codes or do I have to edit a whole php page? Header area Thank you for any input. ...
1
vote
1answer
60 views

How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme

I want to add some custom HTML code on the home page of my school's website. I managed to do this by adding the HTML code into the Main Index Template (index.php) file of the theme, however the code ...
1
vote
1answer
76 views

Shrink Header Image on Scroll

I am currently using the free version of neve on a local server and I am trying to make my sticky header responsive based on the scroll. The text is responding correctly and becoming smaller, however ...
0
votes
1answer
8 views

Default customizer colors aren't displayed outside of the preview

I've been working on a custom theme & going through the usual rollercoaster that accompanies this particular exercise. I do find it very rewarding but what I'm looking at right now is the theme's ...
0
votes
1answer
14 views

Removing Image Links from Custom Post Type

I have purchased a theme from themeforest and they have a custom post type to create a masonry view of images. 1) When I add the custom post type (included in the premium theme) the images in the ...

1
2 3 4 5
18