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
0 answers
8 views

How to upload multiple images to use as gallery in Kirki Framework

I am using Kirki Option framework which works like charm in most cases, I recently shifted from Redux framework. I have a section in my website for the gallery, I want to upload multiple images using ...
Milan Bastola's user avatar
0 votes
0 answers
21 views

Sections dependent on checkbox the Wordpress WP_Customize_Control

I would need to create checkbox dependent sections in wordpress customization panel if possible. They should work so that when the checkbox is checked the section "eg 1" will be shown and ...
Josef Volný's user avatar
0 votes
1 answer
31 views

How can I display customizer's "Additional CSS" to administrators and editors (in multisite)?

In my multi-site WordPress, administrators and editors don't see the Additional CSS section in the customizer. I would like them to have access to that panel. Only super-admins can see the additional ...
JakeParis's user avatar
  • 654
0 votes
0 answers
12 views

Show the value of the custom field of the order on the My Account Front-end page

I would like to show the value of the custom fields filled during the order also in the frontend my account page. This is the URL of the location: https://example.it/my-account/view-order/860/ I would ...
LesCa's user avatar
  • 21
0 votes
0 answers
22 views

block the cart to a product without blocking the quantity

I'm creating a course site where it is possible to register and pay via Woocomerce, I need to block the possibility of adding multiple courses (products) to the cart but leave the possibility to ...
LesCa's user avatar
  • 21
0 votes
1 answer
84 views

Appointment booking system in WordPress

I have to make an appointment booking system with WordPress, I have a custom post type "appointments" with various various custom fields like : Name, email, date, time, office, service... ...
LesCa's user avatar
  • 21
1 vote
2 answers
16 views

How to determine if WP_Customize_Nav_Menu_Item_Setting is a 'taxonomy' type?

I'm following the answer given for Add settings to menu items in the Customizer. I'd like to inspect if a menu item is of type taxonomy. However, get_post_type returns nav_menu_item. How do I dig ...
Diana's user avatar
  • 121
2 votes
1 answer
111 views

Show the terms of the hierarchical taxonomy

I'm trying to display buttons with category term names. i am using this code which works to show terms of categories which without hierarchy, but i can't figure out how to adjust it for hierarchical ...
LesCa's user avatar
  • 21
0 votes
0 answers
35 views

Open WP Insert/Edit Link modal inside the Customizer

Is there a way to call the WP Insert/Edit Link modal when inside the Wordpress Theme Customizer? I am trying to make a custom control button that will open up the WP Insert/Edit Link modal, instead of ...
CanvasOfGod's user avatar
0 votes
1 answer
38 views

Add custom button to the changeset status in the Customizer

I would like to add custom button to changeset_status in the Customizer actions. Any idea how can I do that? Thank you.
Victoria Lievikova's user avatar
0 votes
0 answers
18 views

My custom fonts are uploaded and included in the list but do not apply

I created a dashboard that provides the option to upload fonts in .woff format which will be used with the Kirki framework. The files are added successfully but I can't figure out where to output the @...
justtme's user avatar
0 votes
0 answers
14 views

Customizer cuistom CSS Priority ordre Issue

function theme_customizer_styles() { wp_enqueue_style( 'theme-customizer-css', get_template_directory_uri() . '/css/theme-customizer.css' ); } add_action( 'customize_controls_print_styles', '...
WordCent's user avatar
  • 1,827
0 votes
0 answers
26 views

Custom customizer CSS priority

function themename_customizer_styles() { wp_enqueue_style( 'themename-customizer-css', get_template_directory_uri() . '/css/themename-customizer.css' ); } add_action( '...
WordCent's user avatar
  • 1,827
0 votes
1 answer
39 views

Custom HTML structure in customizer not rendring in Browser

$wp_customize->add_section( 'sutta_section', array( 'title' => __( 'Sutta', 'yourtheme' ), 'priority' => 160, )); $wp_customize->add_setting( 'show_sutta', array( 'default' =&...
WordCent's user avatar
  • 1,827
0 votes
0 answers
53 views

How to add input file plain text and submit to publish?

Update: I got it to update the database and allow the submit but it only saves the local directory path and file name, but it should be saving the file contents, not the path and file name. It is ...
Angel Hess's user avatar
0 votes
0 answers
12 views

How to override javascript in customize-controls.js

Is there a way to override a javascript section of wordpress core code in the customize-controls.js file? Like is there a way to do a search/filter with php and tell wordpress to replace with ...
Angel Hess's user avatar
0 votes
0 answers
214 views

How to access files outside /var/www/html

I'm using wordpress+apache2 and deploy it myself. I have created a custom mechanism to sync wordpress to git so that on the server itself I have to have symlinks between the synced wp-content folder ...
yuranos's user avatar
  • 101
0 votes
1 answer
38 views

Where did I put this one line of css?

So I'm a bit lost. There are so many places to tuck away custom css between the WordPress customizer and Elementor Pro, and I added some css to style a couple little recurring anchor tags in a file ...
Marta Telkamp's user avatar
0 votes
1 answer
14 views

Sidebars panel in customizer

I write a template and I want to create a panel like widgets panel for footer. I register some sidebar which represent the columns of the footer and I want to create a panel which contains section for ...
ryan's user avatar
  • 1
0 votes
0 answers
5 views

I want create woocommerec match products columns

I have created three columns. In two columns I want to add woocommerce products (e.g bottoms in one and tops in another) and for third column I want it to be populated from products present in tops ...
Maxx's user avatar
  • 1
3 votes
1 answer
37 views

Execute javscript when theme customizer loads (autosave issue)

I have a theme that is having an issue when there are unsaved theme changes, then the user restores an autosave. My theme has some jquery that watches for a font to be changed, then updates a second ...
JWright's user avatar
  • 33
0 votes
0 answers
96 views

WP Customizer get control value on change

I've written a function for my WP theme based off of this question:Changing the entire control choices using wp.customize with JavaScript My code is as follows: ( function( wp, $ ) { wp.customize....
JWright's user avatar
  • 33
0 votes
0 answers
34 views

How to return responsive images from a sanitize_callback?

I'm trying to sanitize the images of the customizer from my theme. I found an example on this topic and it works, but makes my template stop showing the image. With a var_dump(), I found out that the ...
Natália's user avatar
0 votes
1 answer
47 views

Real estate schema markup not showing up on Rich Results test

I am not very techy, but I am trying to add schema markup to real estate listings automatically. The site is built using MyHome theme. Here is an example of a listing that I want to add schema markup ...
3vanse's user avatar
  • 13
0 votes
1 answer
86 views

My theme is full of error messages in the "Customize" screen, but nowhere else

I'm making a custom Wordpress theme. At some point, the "Customize" page in the admin panel has completely broken, giving me tons of these errors: Notice: Trying to get property '...
Hubro's user avatar
  • 141
0 votes
0 answers
35 views

Issue with customizer and widget page

I have a wordpress website with hair and beauty theme, for some reason the customizer and widget page in wp-admin are not working and giving 404 error, i tried the following things so far check ...
Sankalp Chari's user avatar
0 votes
0 answers
44 views

Customizer Changeset, Sidebar and Rest API Custom Endpoints

How can I get rendered sidebar content with REST API inside a WordPress Customizer Changeset ( customize_changeset_uuid )? Related to this question: The customizer should be able to point to a ...
Ünsal Korkmaz's user avatar
0 votes
1 answer
116 views

How to show associated fields if checkbox is checked in customize widget screen using wp_customize?

I created a checkbox section to let user to choose whether wants to display a button in the menu or not, I set the default value to false, and created two fields for the label of the button and the ...
Hatem Frere's user avatar
0 votes
1 answer
188 views

Wordpress Customizer not loading

I am trying to switch my Wordpress site to a new theme. I could reproduce the initial issue on my live site as well but did all the following testing in my local staging environment. Issue: As long as ...
Wolfgang's user avatar
0 votes
0 answers
20 views

How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?

I'm making a wordpress site for 7 languages. when i do this I need to translate everything according to languages. is there a shorter way to do this? For example, we have the file "en_EN.pot"...
Kaan's user avatar
  • 1
0 votes
0 answers
242 views

adding additional css classes have no effect within block editor

I've been inserting CSS through the Customizer -> Additional CSS. Then I will add some classes within the block editor to single blocks, using the Advanced -> additional css classes field My ...
1NN's user avatar
  • 115
1 vote
1 answer
92 views

Problems with draft website pages

I set up all the pages for my website (set as public & DRAFT) (https://9v7.961.myftpupload.com/?page_id=50) - BUT - lots of stuff not working (menu shows no pages, cannot link to Posts, custom ...
Leslie's user avatar
  • 11
0 votes
1 answer
51 views

Issue displaying customiser setting with get_theme_mod

I've created two custom fields within the customiser, a text field and a dropdown-pages field. The dropdown-pages field (button_1_link) works fine but the text field (button_1_text) doesn't display ...
FlyingFox's user avatar
0 votes
3 answers
60 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), ...
pixelfairy's user avatar
0 votes
1 answer
22 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' ...
Oast's user avatar
  • 101
0 votes
0 answers
17 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( $...
askuserahmed's user avatar
0 votes
0 answers
28 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 ...
xxtesaxx's user avatar
  • 101
0 votes
1 answer
71 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' =...
Tim Wakeling's user avatar
0 votes
1 answer
39 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 ...
besty_01's user avatar
0 votes
0 answers
43 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 ...
Brad Dalton's user avatar
  • 6,886
2 votes
1 answer
179 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 ...
rugbert's user avatar
  • 168
0 votes
1 answer
94 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 ...
Divjot Singh's user avatar
0 votes
1 answer
65 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 ...
Angel Hess's user avatar
0 votes
1 answer
123 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 ...
Raymond's user avatar
  • 121
1 vote
0 answers
208 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 ...
Trushar Gavit's user avatar
0 votes
0 answers
20 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 ...
Controvi's user avatar
  • 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 ...
Noman CH's user avatar
1 vote
0 answers
287 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 ...
Lv1983's user avatar
  • 11
0 votes
1 answer
96 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 ...
Abdulrahman Hassoun's user avatar
0 votes
1 answer
34 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 ...
Benjamin Jex's user avatar

1
2 3 4 5
19