Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
35 views

Change image using only CSS [on hold]

I'm using the twenty fifteen theme. I have a logo set using the WP Customizer. I want to have the image change on mobile or tablet view. The breakpoint is anything smaller than 59.6875em. I'm ...
-2
votes
0answers
10 views

Wordpress Customizing Additional CSS - save this CSS in a file in the upload folder dynamically and remove css from head()? [duplicate]

how it works, - Customizer settings are saved by hitting the ‘Save & Publish’ button. - This also saves our custom CSS added in the Additional CSS section. - This custom added CSS is placed in the ...
0
votes
0answers
10 views

How will i add an option under customizer the event calendar section?

What is the customizer section name? I want to add a field option under customizer The Event Calendar section. Or how will I add a field under The Event Calendar option? Can someone help me with that? ...
1
vote
1answer
33 views

Customizer Not Applying Any Change, No Error Thrown

I have been stuck on this for several days now. The theme customizer does not apply any change, and the problem seems to be different from everything I've seen on online forums (lucky me). The page ...
0
votes
0answers
14 views

Theme's Java Script not updating

I' am trying to modify themes Java Script using Theme Editor. But when I click save, nothing happens on my page. I use WP super cache to clear my cache but it doesn't change a thing.
0
votes
1answer
26 views

Where do I go to edit this area? [closed]

I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the ...
0
votes
0answers
13 views

If customizer drop down equals, hide option?

I have an option that is a dropdown menu which let's me select between 3 different themes. And I want to hide another options if theme-1 is selected. This is the Customizer controls: $wp_customize-...
0
votes
0answers
9 views

Customizer setting dependant on other setting?

I have created a custom site template which I have settings for in the Customizer. I can select "Themes" from a drop down which are preconfigured backgrounds. However I want to be able to upload a ...
0
votes
0answers
16 views

Is it possible to ad custom block areas through Customizer that would allow adding Gutenberg blocks?

Is it fundamentally possible to create a custom area through Customizer that would allow adding Gutenberg blocks. Similar to a widget area but one that can be managed through Customizer panes and ...
0
votes
0answers
20 views

Customizer and creating pages not working [closed]

i just created a website with the hosting services of one.com. So i uploaded the newest wordpress from their website and i was able to install it. But after that even although everything is on default,...
-1
votes
1answer
22 views

Page structure using The Customizer Api

so I'm trying to customize themes using The Customizer Api, and I've noticed that I can only change the css, is there a way to control the page structure and layout (HTML) ?
1
vote
0answers
7 views

Add media library items to Menus using the Customizer (via Media Manager not URL)

You can add links to files in the media library URL via the Custom Links panel of the Customizer but for clients this requires multiple steps including cutting and pasting a URL from the media library ...
0
votes
0answers
28 views

Customizer Preview doesn't refresh functions

I'm having an issue where the Customizer Preview doesn't seem to fully refresh, but if I manually refresh the page the changes work. I've made a simplified example of the issue I'm experiencing: I ...
0
votes
0answers
26 views

Slider in Customizr randomly lose content

I have a problem concerning a Slider in Cusomizr (WP theme). Only in Chrome and Safari on particular Computers I obtain bizarre error. It looks like this: The content of a slider becomes grey, ...
0
votes
2answers
46 views

Woocommerce image sizes missing from Appearance › Customize but not declared by theme

I would like to resize the 100px x 100px store thumbnail images. The sizes are supposed to be set under Appearance › Customize › WooCommerce › Product Images These size settings are missing. After ...
0
votes
1answer
10 views

Changing Customizer Select To Checbox, But Retaining Classes

On a custom theme I had made, I had some options like so: $wp_customize->add_setting('swag_header_display_homepage', array( 'default' => 'header-display-homepage-yes' )); $...
0
votes
0answers
22 views

Wordpress customizer extremely slow, cant work in it

I have been adding a couple of settings to my Wordpress admin using this code: $wp_customize->add_section( 'sectionname' , array( 'title' => __'Name', 'priority' => 80,...
1
vote
1answer
13 views

How do I make HTML output work when using the customizer?

How do I make HTML code that is written in the customizer output properly? I need a line break to appear where it has been placed but I am not to get it to output properly.
0
votes
1answer
23 views

How to alter static Page text through the Theme Customizer API

I am fairly new to Wordpress development so I apologize for my ignorance. How can I alter the static information on my pages (IE not entries or page content) through the Theme Customizer API? Is it ...
0
votes
0answers
13 views

How to show users with have role in separate menus in wordpress admin panel

In users menu Wordpress admin panel, for default shows all users with all roles in a menu. I want to show users with have role in separate menus in wordpress admin panel. For example each users have ...
0
votes
0answers
23 views

Wordpress appearance button

Is it possible to place an appearance button on wordpress site. For example to make background bit dark or bit light or other colour. This feature is available on native apps. If it can be done on ...
0
votes
0answers
18 views

(Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme

I'm a WordPress developer but this one has left me scratching my head... I've got a parent theme and a child theme. Works great on my local machine, and was working great on my live server. However ...
1
vote
1answer
21 views

Theme customization based on grouped pages

I have a page (currently not yet Wordpress) with 20 pages, categorized in 5 groups and every group has it own group image in the header of the page (outside of the content). Every page in a category ...
0
votes
1answer
29 views

Why is remove_setting and remove_control not working?

I've renamed my theme folder and all other title related bits, but I had a long list of settings and controls that were added with labels related to the old name, I want to remove these. I believe I'...
0
votes
1answer
107 views

Override theme style rule in Gutenberg

I have a theme that adds the following CSS rule inline through the Customizer to style the hover state of links in post content: .entry-content a:hover { color: <color selected in the ...
0
votes
2answers
25 views

Child theme customizer preview doesn't work/load

Quick heads up, I know nothing much about php so I might need some extra help with this. So, I have set up a while ago a child theme for Astra in Wordpress. And while everything is working well so far,...
0
votes
1answer
16 views

How to check if a Customizer setting is set?

I'm trying to setup a function that writes a meta tag into the header of my site. Namely, I've set up a color chooser input like this: function customizer_options($wp_customize) { $wp_customize ...
0
votes
1answer
45 views

How to add “get_theme_mod” inside a shortcode?

I want to make dynamic the content inside a shortcode so I can modify it in the customizer. I created the customizer tabs. Now, I want to create a shortcode to place it anywhere in the page while ...
1
vote
0answers
43 views

How to Get WP_Customize_Image_Control content?

I want to get WP_Customize_Manager controls from my frontend with ajax. This is possible? I looking for a solution on the internet, but I have not found so far any useful documentation about this... ...
0
votes
0answers
16 views

Customizer control for including files in functions.php

I have the following include in my theme's functions.php file to add social sharing icons to my theme: require get_template_directory() . '/inc/social-sharing/social-sharing.php'; I would like the ...
0
votes
0answers
12 views

Kirki Customizer radio control

I'm using "kirki customizer", the homepage consists of a few styles (for example: homepage-1, homepage-2). How to use Kirki customizer-da radio control, how can I use it?
0
votes
0answers
24 views

Initial Customizer is_admin() but loading preview is neither is_admin() nor is_customize_preview()

When clicking from wp-admin into the Customizer, WordPress loads the Customizer (where is_admin() is true) and then loads all of WordPress a second time in order to generate the preview iframe, in ...
1
vote
1answer
21 views

WordPress code editor VS customizer “built-in CSS editor”?

I needed to make some CSS changes to my WordPress site (child theme) earlier and opened the WordPress editor inside "Appearance": Appearance > Editor > someCssFile.css Inside the editor page, ...
-1
votes
1answer
13 views

How to display specific title on Customizer?

Please find the below image. It will be more clear to understand my question. I want to display the title that has been shown on above image in the Customizer. How can I do that?
0
votes
1answer
24 views

Woocommerce section name? [closed]

What is the customizer section name? I want to add a field option under customizer woocommerce section. Or how will I add a field under woocommerce option? Can someone help me with that?
0
votes
1answer
46 views

“Display Site Title and Tagline” checkbox without adding Header Image option

I'm building theme from scratch. I want to add "Display Site Title and Tagline" checkbox bellow Site Title and Tagline I can do that If I add the following code to functions.php add_theme_support( '...
0
votes
1answer
43 views

Wordpress customizer header image section missing [closed]

I made some changes to the theme and reverted it back but now the header is not displaying and the header image section is missing. I even tried switching the theme but sill no header. I tried ...
0
votes
0answers
11 views

Custom Customizer Image Sanitize fails to update image

I use this custom sanitizer to get the appropriate image size so that anyone using my themes can't mess up and put an 8k image in the website. The code works, but the problem I have is that once the ...
0
votes
0answers
32 views

In 2016 Theme where is the Posts page thumbnail image stored?

We built our new site at a staging URL. We then moved it to the live site and everything works fine -except- for the 'Posts' page. On that page, the image specified as the thumbnail continues to ...
0
votes
2answers
25 views

I need to get the control choices to sanitize_callback

Code Currently, I'm working project to automatically generate all my theme customizer options with simple array. 'nav_font_style' => array( 'default_options' => array( 1 ...
2
votes
2answers
60 views

How can a default site icon be set in customizer?

From my research there are only two questions I've found around this topic on this site: How to change in customizer the “site identity” tab required capabilities how to change default icon of custom ...
0
votes
0answers
12 views

How do I change the location of Customizer control on the screen?

I have an existing Customizer admin page with several controls already added to it by my theme (screenshot). I want to add my own control and insert it somewhere in the middle of my theme's controls. ...
0
votes
0answers
24 views

Ignoring x-frame-options in Customizer?

I get this error/info in the console on my site when I go to the Customizer. Content Security Policy: Ignoring ‘x-frame-options’ based on ‘frame-ancestors’ directive. I don't understand why this ...
0
votes
0answers
20 views

How can I add a logo to the hamburger menu?

I have a mobile hamburger menu setup, but I am having trouble adding my logo to the left of it. This is coded to go against the theme. Any idea on how I can add a clickable logo to the left of the ...
0
votes
1answer
50 views

Creating default object from empty value in wp_customize?

I have the following code on line 315 and 316 of my theme file customizer.php For some reason I get error in my error_log file in the root of the installation. Everything seems to work fine though. $...
0
votes
0answers
17 views

How to select a particular post layout across theme?

I have multiple layouts which are being used in the theme. Now, I require different excerpt length for every layout. I tried using the excerpt_length filter in functions.php but it affects the excerpt ...
3
votes
1answer
88 views

How to print the value of a custom control in the Customizer?

To the Customizer section of my WordPress admin area, I have added a custom setting and custom control. I would like to now print the value of this control. How can I do this? The code used to add ...
1
vote
1answer
28 views

How To Remove or Hide Appearance->Background from Admin Menu

I have a menu Appearance->Background on WP admin, i want to remove or hide from Editor user. i was try to using public function remove_menu() if( !current_user_can( 'administrator' )){ { if( !...
2
votes
0answers
22 views

How to check if customize previewer is refreshing?

I am trying to send data from customize control to customize previewer. The scripts work fine until the customize previewer is refresh. The problem is only the previewer is refresh, the customize ...
0
votes
1answer
26 views

How do I remove header/page-title image in farvis theme? [closed]

I'm working with farvis theme. In that theme I removed background image in customize >> page titles & Breadcrumbs >> background image >> remove. But after I clicked save and reloaded the site ...