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
1 vote
0 answers
13 views

Can't find elemnts on the DOM using Custom Control in Customizer API

I'am creating a Custom Control on Customizer API, I add Multiple Checkbox as my custom type. When I wanna add a live preview, the jQuery doesn't find the selector that I want. Here's functions.php ...
Miminou's user avatar
  • 11
0 votes
0 answers
38 views

Wordpress 6.4.2 - can't load editor style css using 'after_setup_theme' or 'admin_init' actions

My hosting company upgraded my remote Wordpress version of my site to 6.4.2 and as I mentioned in a previous ticket alot of things stopped working. One item that seems to be broken are the custom ...
Mike Sav's user avatar
  • 127
0 votes
1 answer
102 views

How do I create a single.php file as the default template for single posts in the twentytwentythree theme?

I am trying to create a single.php file to be the default template for displaying single posts in a child theme that I have created from the TwentyTwentyThree theme. The reason I want to set this as ...
Shanahando's user avatar
0 votes
0 answers
25 views

Partial refresh in WordPress live preview

I have used the number input controller for the WordPress customization section. By entering the new number, the whole page is refreshed in the live preview, and the reason for this is because of the '...
Benjamin's user avatar
0 votes
1 answer
35 views

Why does customize_register only load inside of functions.php for me?

I'd like to better understand - when I place the below into my functions.php file: add_action('customize_register', 'boat_annualReport_customize_register'); function ...
Dreamyth's user avatar
0 votes
1 answer
40 views

Customize all image captions

Is there anyway to add smth like a SVG to all image captions of my website? Smth like the camera logo under this photo.
Poorya Ghorbani's user avatar
0 votes
1 answer
13 views

Is child-theme required when modyfing "Appearence > Editor"?

I'm using the block theme "Twenty Twenty-Three" and I've modified its appearance by doing some custom editions through "Appearence > Editor". Now, will I lose all those changes ...
Alvaro's user avatar
  • 131
0 votes
0 answers
26 views

WordPress Responsive Custom Control WP Customizer

I'm developing a WordPress theme and I searched for days without finding anything. I have a custom control in WP Customizer and I want that it can save data responsive for desktop, tablet and mobile. ...
Stefano 's user avatar
0 votes
0 answers
33 views

Sticky bar with filter button and product count

I use elementor and hello theme. I need to create a sticky bar with filter button and product count when you scroll product archive, similar to https://www.chanel.com/it/make-up/labbra/c/5x1x1x31/...
avenz's user avatar
  • 1
0 votes
0 answers
9 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
24 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
137 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
  • 653
0 votes
0 answers
17 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
24 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
241 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
24 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
  • 103
2 votes
1 answer
121 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
70 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
50 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
32 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,857
0 votes
0 answers
31 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,857
0 votes
1 answer
46 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,857
0 votes
0 answers
60 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
294 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
44 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
17 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
3 votes
1 answer
42 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
43 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
64 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
175 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
59 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
144 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
575 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
521 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
  • 125
1 vote
1 answer
196 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
72 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
68 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
31 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
21 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
30 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
91 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
45 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
45 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,906
2 votes
1 answer
215 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
111 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
68 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
193 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
  • 141
1 vote
0 answers
248 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

1
2 3 4 5
19