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
2 answers
35 views

What's the best way to go from a design to a customized Wordpress site?

So, I've put a lot of work into a simple, clean one page design. It's nothing fancy, text, images, some google fonts, colors, nothing complicated going from mobile to desktop (just sizing changes), ...
0 votes
1 answer
18 views

Use HTML tags in 'Appearance -> Customise' interface

When going to 'Customise' within WordPress and the left sidebar pops up, I am unable to use styling tags in the boxes that come up. Example: the theme I am using has 'Content title' and 'Content text' ...
  • 101
0 votes
0 answers
13 views

How to set a custom URL for the iframe in the customize page

I am using Wordpress as a headless cms. The frontend won't load on the customize page, it is just completely blank and the title just says "Loading...". Is it possible to show the frontend(...
  • 1
0 votes
0 answers
22 views

Related Post Category Filter

How can I set a category filter for the related posts display so that a certain category is not displayed? here is an example link: https://bit.ly/3zNSoso the category with the id 390 should be hidden
0 votes
0 answers
9 views

Set Default Post as Parent Child (Nested) Relation

I want to select post as parent for child posts for default post type not custom post type. By default wordpress allow nested relation only for pages but i want for posts. Anyone have idea how to ...
0 votes
0 answers
11 views

Is it possible to add custom badges to product attributes conditionally, based on custom field?

Client wants to add "Popular" badge to product based conditionally based on a custom field. Is it possible to implement something like that and if it is how would you go about this. Thank ...
0 votes
0 answers
11 views

Customizer List of Items

I am working with Customizer api for text for example $wp_customize->add_setting('basic-author-callout-text', array( 'default' => '', 'sanitize_callback' => array( $...
0 votes
0 answers
13 views

Adding custom link with get parameter to a menu button

I am trying add a button with custom link to header menu using the themes->customize functionality. The problem is that for some reason '?' and '=' characters needed for GET parameterer gets ...
  • 101
0 votes
0 answers
25 views

Prevent Wordpress from setting src on image added in Customiser

I'm trying to apply custom data-src and srcset attributes to images added in Customiser. The page is static with no loop and I have so far hard coded the data-src attribute with <?php echo ...
0 votes
0 answers
23 views

Theme Customizer performance drops when adding a lot of settings

I maintain a plugin in which we currently add ~730 settings to the Theme Customizer. We use a few custom controls for panels, sections and settings and loading the preview is a very painful experience ...
  • 101
0 votes
1 answer
22 views

Can I make a Customizer dropdown-pages list include private pages?

I'm using the following code to add a field to the Customizer where the user can select a page from the available pages on the site: $wp_customize->add_control( 'resources_page', array( 'type' =...
0 votes
1 answer
26 views

How to allow certain PHP functions when using sanitize_callback in the word press customizer

Hi I am making my own theme in WordPress and setting up some customizer options and I have one for the text in my footer but I would like to still use <? echo date('Y');?> in the footer to ...
0 votes
0 answers
24 views

Getting text from custom field from customizer

So I've created a panel in the customizer section in WordPress to add the phone number to the site. It works fine in the back end but it wont show up in the front end here is my functions.php ...
  • 5
0 votes
0 answers
10 views

How to Add Extra Settings to Appearance/Customizer Sections homepage

I want to exactly add settings to the static_front_page section in the customizer Sections homepage, I wrote code in functions.php for that but it doesn't work. my code in functions.php file: ...
0 votes
0 answers
38 views

OOP PHP class extends TwentyTwenty_Customize in Child Theme

Not sure if OOP is covered here but i've copied the class-twentytwenty-customize.php file from the Twenty Twenty parent theme to my child theme and renamed it to class-customize.php because i need to ...
2 votes
1 answer
113 views

the Customizer - proper way to instantiate an image upload control via javascript

I am trying to create an image control using: wp.customize.control.add( new wp.customize.Control( myControlSettingID { type: "image", button_labels: {select: 'Select ...
  • 158
0 votes
0 answers
14 views

Grabing default from cuztomizer php file instead of other php script

I've seen codes that use something like: $this->default; I don't know the logic for that style of code yet. To grab a default for spesific customizer control or from a configuration file instead of ...
0 votes
0 answers
16 views

Astra theme - cannot set short product description under the product title (product name)

I want to have following vertical structure on my products short description: Image->Product Name->Short Description. I've read that by default it is this order. This is the code I'm using: ...
  • 1
0 votes
0 answers
15 views

How to add wysiwyg editor in customize screen using customize_register

Welcome I am developing a theme and I need to add wysiwyg editor to the customize screen using the “customize_register()” , I searched a lot here and on other sites about how to add it, and although ...
0 votes
1 answer
29 views

require_once not working in plugin wordpress

I'm creating a plugin and I have to add some custom controls through the plugin. Here is the code for the custom control defined in featured-types.php - function ...
0 votes
0 answers
28 views

How to register dynamic settings in WordPress Customizer?

I have been experimenting with the Customizer JS API to create Panels, Sections, Settings and Controls in the Customizer. Till now, I have been using the PHP API but decided to try the JS API for the ...
0 votes
1 answer
61 views

Multiple jQuery inputs or binds in Customizer Control Javascripts

If I have 2 javascript parts (for the Wordpress customizer), how do I get part_two to have access to use the data entry from part_one? See example below. The part_two script needs access to part_one ...
0 votes
0 answers
15 views

How would you set Theme Customizer API Previewer Preview URL of a Logged out Page or Login Screen

How would you set the WP_Customizer preview iframe to a Logged out page like the Login Screen /wp-login.php? I'm aware of how to set the preview page on expansion of panels or sections, but I have ...
0 votes
0 answers
13 views

Elementor Sidebar not loading when PRO elements plugin is active

I am currently running into an issue on my site whereby the elementor plugin will not load in the editor view while the PRO elements plugin is installed The issue is that the theme and pre-built site ...
  • 1
0 votes
0 answers
8 views

WordPress navigation URL became hashed URL automatically

I'm customizing a WordPress theme and while changing the nav bar I faced an issue. When I add some page Link under the main service page the main service page URL became hashed URL. I've also used a ...
0 votes
0 answers
15 views

Let user to upload multiple time

I'm using the Superio WordPress theme and I want to add a feature to the theme but I don't know how! The default logic of the theme is like this: The user would log in to an account and would apply ...
0 votes
0 answers
20 views

Don't run code if in customizer or privew

I have a function compiling my sass every time the page loads, IF it's enabled in the theme. This of course gives a couple of seconds load time which is fine, it's only used in development. But I'm ...
  • 11
0 votes
1 answer
39 views

How to copy page/post from one theme to another?

I was using default wordpress 2022 theme and created few post & page templates from Appearance -> Editor -> Templates. These templates are lost when I switched to a child theme. Is it ...
  • 121
0 votes
0 answers
28 views

Sanitize callback function for select controll in customizer

I've a select type control in customizer. I've used a sanitize_callback function there but it's not working and it's holding my customizer as well. Can you please help me with a sanitize_callback ...
0 votes
0 answers
28 views

Illegal string offset in PHP function in via Theme Customizer

I have this setting in wp_customize: // Select share box options. $wp_customize->add_setting( 'single_share_box_options', array( 'default' => $this->defaults['...
  • 454
1 vote
0 answers
83 views

Create a range slider to change font-size with different screens sizes in wordpress customizer api

I have been trying to create a theme customizer to change the font size. To do that I have created settings and control. But the issue is I am unable to achieve like as shown in the image. I have used ...
0 votes
0 answers
22 views

Want to permanently remove pagination number page/2/ in WordPress

I'm using GeneratePress (GP) theme. They have default infinity scrolling feature. I am using this infinity scrolling instead of pagination. But problem is when I go to homepage or category page and ...
0 votes
0 answers
17 views

Twentyseventeen theme customize bug

I have been trying to work out an issue with a clean install of wordpress using the customizer for the TwentySeventeen theme. I use the latest version of the theme. In the details it states that it ...
  • 111
0 votes
0 answers
13 views

Issue with Wordpress customize

I am usign Hello Elemntor Child Theme. I am changing woocommerce product thumbnail size. it change in customize preview but when i see it on front end or i refresh the customize page, changes get ...
1 vote
0 answers
91 views

How to conditionally show/hide controls & sections in WordPress customizer?

I have some custom sections and controls in the WordPress customizer, including a section where other sections can be turned on and off depending on what elements the user wants on the page. When a ...
  • 11
0 votes
1 answer
59 views

Broken Customizer page

​Hello! The (Theme Customizer) is broken. The link from the menu disappeared and when I access it via the URL wp-admin/customize.php I got the attached error on my console. Screenshot: Things I tried ...
0 votes
0 answers
28 views

Defining path of content folder in WP-config solves the issue of missing header, footer, theme options. Is this a good approach? Expert Advice needed

The header, footer, theme options went missing on the website. I am using the latest Bitnami WordPress Stack on Amazon Lightsail, Approach A: Bitnami installations using system packages. When I ...
0 votes
0 answers
41 views

Creating a WordPress Customizer control/field with react

I know,We can create panels, sections and controls in the Customizer with JavaScript. Is there a way where i can create a custom control using react component, then use it in customizer field.
0 votes
0 answers
31 views

How to change listing type permlink?

How to change the listing type permalink? I tried changing it from the admin dashboard permalink field but it’s not working. I am using MyListing theme, i tried to reach them but no response till now ...
0 votes
1 answer
28 views

Why would the child theme load in the Customize preview, but not on the site itself?

I have my child theme folder, the style.css sheet with the required template comment and some custom css, and I have the functions.php page with the required enqueing code. Everything seems to be in ...
0 votes
0 answers
12 views

Making the menu toggled open on mobile devices Illustratr theme

I would like to make the menu appear the way it does on desktop devices for mobile and tablet devices. It's open on desktop, but a hamburger icon for smaller screens. I looked at this question, but ...
  • 113
0 votes
0 answers
53 views

Will WordPress updates remove Gutenberg Additional Classes?

I’m attempting to customize Gutenberg column blocks on my front page. I’ve added a custom class name to a column block using the blocks Additional CSS class feature. In my child theme style sheet, I’...
0 votes
0 answers
52 views

Custom link with checkbox that adds additional word to checked menu items

I need to add a checkbox on the custom link field section of the menu customizer, that then adds a hard coded word to the spesific menu names that have the checkbox checked. I don't want a text box ...
1 vote
0 answers
8 views

Add fields in customization tab to change background colours of certain classes

I'm maintaining a Wordpress theme for a website that has an annual style change. Nothing fundamental, a few images get switched out and the colour scheme changes as well. The theme uses a pallette of ...
0 votes
1 answer
26 views

How to get a custom field in theme customizer to live update the element in preview window?

I created a custom field for theme customizer, and all works fine to display the field, save the value to the DB and retrievable via get_theme_mod(), but it does not live update in the preview window. ...
  • 59
0 votes
1 answer
15 views

What is the method to switch to specific page on entering theme customizer screen?

On entering the theme customizer, it defaults to the set home page, however I need to change the default to a page with ID 45. The set home page uses a special template and is formatted by the ...
  • 59
0 votes
1 answer
34 views

How to add CSS to head by php through echo self::css();

The tutorial https://iamsteve.me/blog/hero-area-series-wordpress-customizer-with-selective-refresh#customizer-setup gives a method for changing color by WordPress Customizer (Color control). It ...
0 votes
0 answers
67 views

How to Display Error in my WordPress customizer API?

I have been trying to add error to my WordPress customizer API like this error message: I am trying to add custom message when the user enter invalid phone number, here is my custom code: $...
1 vote
1 answer
123 views

making customizer sections sortable but items not getting sorted first time items are moved

I'm trying to make a panel in customizer whose sections are sortable and the order of the sections determines the order of the areas they control at the front-end. I referred to the following question ...
0 votes
1 answer
26 views

customizer refresh breaks with this code but I don't understand why

Below code is a portion of my "wp_nav_menu" code. I don't understand why the 4th part below, the 'menu' section breaks the "customizer refresh". It makes the refresh in customizer ...

1
2 3 4 5
19