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
8 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
7 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
36 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
26 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
29 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 ...
-1
votes
0answers
14 views

How to add to customizer object setting that contains array?

i want to create a section with customizer object that will contain an array of data that i can add dynmically within the customizer by a button. Example from ACF Pro: is there a way to achieve this? ...
0
votes
0answers
16 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
15 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
14 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
6 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
11 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
9 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
14 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
24 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
9 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
24 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
14 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
16 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
31 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
15 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 ...
1
vote
0answers
44 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
36 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
45 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
13 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 ...
0
votes
1answer
14 views

Image cropping isn't working correctly when using Offload Media

I've been working on a custom theme using the blankslate boilerplate & I'm happy with how it performs with a few minor details. This one concerns image cropping when a site uses the Offload Media ...
0
votes
0answers
10 views

Create custom control for WordPress customizer using JavaScript

I followed this link to learn about how to create a custom control for customizer in Wordpress. According to their doc, I made a control using this code wp.customize.control.add(new wp.customize....
0
votes
0answers
6 views

Customizer on subsite only edits mainsite problem

When I follow the links to the customizer for the subsite, it shows the main site in the editor. Changes are also applied to the mainsite instead of the subsite. Normal Multisite setup without ...
0
votes
0answers
20 views

twentytwenty theme: what is the css selector(s) for Desktop Expanded Menu

I'm using the twentytwenty theme and would like to modify the appearance of the desktop expanded menu. What are the css selector(s)? Specifically, I'd like to narrow the overall menu width. Once I ...
0
votes
1answer
12 views

Customizer Appearance Issue

I am developing new WP theme and it's in the phase of beta testing. So, it has succesfully installed and it's working on some sites. But, now there is one problem on particular host server. (shared ...
0
votes
0answers
22 views

How do I update the wpColorPicker palette after initialization?

Once the customizer color picker is initialized, how can the color palette be updated? The palette can be set through the js options before it's initialized using something like: jQuery.wp....
0
votes
0answers
11 views

Keep customizer sidebar when editor logged in

I would like to keep the customizer sidebar always available when any editor is logged in. How ould i do that ? Thanks Yaz
0
votes
0answers
7 views

ModernThemes builder issue

I am checking pages on a wordpress that use a theme called ModernThemes, as far as I go, looks like none of the pages in the site looks like the site online, I am trying to change things and add some ...
0
votes
0answers
12 views

Install and using custom .otf fonts

I've seen some guide on the net that are using the customizer to let the user select a cutom font for the active theme. I have a custom font that is used from the client for his materials, he want to ...
1
vote
1answer
21 views

How to add field customizable by the theme editor to your theme?

I'm adapting a theme for my use, and it currently doesn't have a field for a banner in the header and I would like to add one. But rather than hardcoding it into the theme, I would like to be able to ...
0
votes
0answers
100 views

DIVI Theme customizer changes not applied on existing pages

I'm using the Divi theme on a localhost created by WAMP Server. The changes I make using the theme customizer menu are updated correctly in the preview screen (header, background colour, logo size, ...
0
votes
0answers
26 views

Different custom logo in header & footer in wordpress theme development

I am developing a wordpress theme and has added the logo to my sirw using 'custom_logo' function of wordpress. Is there any possibility to have two different custom logos for header & footer?
0
votes
0answers
94 views

Wordpress Custom Theme : Theme Builder vs ACF vs Gutenberg

My website has only 5 pages with no sidebars. I want to convert a PSD file to Wordpress theme. I have 3 options and I am confused which one I choose: Using a site builder tool like Elementor/WP ...
0
votes
0answers
20 views

Edit footer via customizer

I am creating my own theme. I would like to edit the footer in the customizer. I was able to enable the custom logo etc. but I can't find a solution how to enable the footer button in the customizer. ...
0
votes
1answer
22 views

where is real values of variables?

I am working on editing the theme now for our center website, we are using Benevolence WordPress Theme. My question might look too obvious to most of you but I am new to word press and spending too ...

1
2 3 4 5
18