Skip to main content

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
10 views

Capture the Selected Radio Button Value between two files in wordpress theme

$html_output .= '<div class="form-group"> <label><input type="radio" name="driver_type" value="society" checked required> ...
amine asfar's user avatar
0 votes
0 answers
11 views

Hover Hide-Visible Additional CSS not working in Wordpress website, but shows properly in Customize window

I have used icon-box element in my Wordpress website with free version of Elementor. I wanted to show icon and title in default and keep the description hidden. On hover, I want to change the color of ...
Kshitij Matey's user avatar
0 votes
1 answer
15 views

How to create new title and its description inside a section in WP Customizer?

Actually, I want to add a new title General settings with a small text description of it in a new section that I've created in the WordPress Customizer. The section is already created and works well, ...
Sam94's user avatar
  • 15
0 votes
0 answers
8 views

WordPress Customizer - How to save list of checkbox of pages?

I'm trying to create an option within the customizer that is basically a list of pages with checkboxes. I have that part working but I don't understand how to save it AND how to retrieve the saved ...
Jon's user avatar
  • 323
0 votes
1 answer
27 views

WordPress Customizer add_control Dropdown of Pages with Multi Select?

I have a customizer option that simply creates a dropdown populated with pages from the site. I need this dropdown to have the ability for multiple selections? Any ideas? $wp_customize->...
Jon's user avatar
  • 323
0 votes
0 answers
26 views

Customizer copyright in Footer Bar

I am running a WordPress (latest version 6.5) staging website in WAMP64 in fact, I am running two versions of this website. There is a problem with the copyright text under the Footer Bar in ...
Mica's user avatar
  • 1
2 votes
0 answers
46 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
  • 21
0 votes
0 answers
100 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
346 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
27 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
36 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
56 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
14 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
30 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
  • 33
0 votes
0 answers
48 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
14 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
27 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
218 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
  • 663
0 votes
0 answers
21 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
25 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
363 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
29 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
125 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
1 answer
56 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
1 answer
53 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,877
0 votes
0 answers
71 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
416 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
52 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
23 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
47 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
70 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
241 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
74 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
174 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
1k 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
685 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
317 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
84 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
72 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
50 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
33 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
107 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
52 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
49 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,936
2 votes
1 answer
260 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
  • 178
0 votes
1 answer
125 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
70 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

1
2 3 4 5
19