Stack Exchange Network

Stack Exchange network consists of 174 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 ...

0
votes
1answer
13 views

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

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 ...
0
votes
0answers
23 views

How do I create a theme with design system components? [on hold]

I have tried looking at the bigger sites that sell wordpress themes e.g. wordpress.org and others to find a theme with a design system like this or this. So far none allow you to customize each page ...
0
votes
1answer
19 views

Allow user to choose header style

I am working on developing a simple WP theme that our office will use as a starting point for any future projects that come in. My question is this: How would I go about adding functionality that ...
0
votes
2answers
17 views

How to show Custom Field Value in Woocommerce Shop Page

remove_action('woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title',10); add_action('woocommerce_shop_loop_item_title','fun',10); function fun() { echo 'custom_field_value'; } ...
0
votes
0answers
6 views

Get current active section and its controls - WordPress, Customizer, JS API

I have a button (custom control) within a section, which on click must get all controls in the section. This is the click event for the button: wp.customize.control( 'reset_control', function( ...
0
votes
0answers
9 views

postMessage callback from Customizer?

I use transport postMessage on my custom customizer settings. This works really good, but I am looking for a way to detect when the postMessage has been called. Right now I change a setting, and the ...
0
votes
1answer
20 views

Wordpress Theme Customization error

On customizing Newspaper theme in Wordpress the page stops loading. Following errors can be seen in the console. I disabled all the plugins to check if it's a problem with any of them. But still, ...
0
votes
0answers
21 views

Checkbox in wordpress customizer not saving and not outputting data

i am building a checkbox in custom plugin. i want to use that checkbox for loading style. so if user check the checkbox this function load_you(); should run and should get checked. but when i do this ...
1
vote
1answer
28 views

How do I get current page ID in Wordpress customizer file?

I'm trying to hide or show customizer settings based on what page I am viewing similar to active_callback' => 'is_front_page', however, I haven't found a way how to access the current page ID from ...
0
votes
0answers
9 views

Javascript when Customizer preview is ready/refreshed?

I am trying to create a javascript which fires everytime the preview iframe is refreshed. I have found this one: wp.customize.bind('ready', function () { }); But this only works when the Customizer ...
0
votes
0answers
19 views

Any hooks before/after each control is rendered

I am looking to extend Customizer to introduce a concept of setting "groups". This is to style them with a background and wrap theme in a fieldset but also to show/hide a whole group. What this means ...
0
votes
0answers
7 views

Customizer input focused, change CSS in preview

I have created a javascript function which changes the css inside the preview when a input is focuses, this means I can bring up a modal when a text input is in focus. This works but as soon as I ...
0
votes
1answer
12 views

Remove button from page if viewed through Customizer

Is it possible to remove a specific button from the page only if it is viewed from the Customizer? I did try a check for wp-customizer in body, but this only checks the body of the iframe and not the ...
0
votes
0answers
12 views

Ajax javascript in Customizer only runs once?

I have a Ajax Javascript/jQuery function which refreshes the content of a div every 5 seconds. This works fantastically when the page is viewed from the front end. When viewing the same page in ...
1
vote
2answers
37 views

wordpress custom theme import and export options for sample data [closed]

I am Created WordPress custom theme as per Html template. it was worked fine. now I am trying to create custom export/import functionality for my custom created theme. but I don't have found a better ...
-1
votes
0answers
8 views

Customizer loading problems

I've been developing a theme with some options, and when i realize, my active_callback functions weren't working anymore (i have a few days old version that it works), so I searched how to Debug ...
0
votes
0answers
26 views

Use Customizer value in frontend?

I have created a custom Customizer section called checkin and with an option called title which is a text field. I have created this function function get_checkin_title() { $opts = get_theme_mod(...
0
votes
1answer
24 views

wp_head makes my custom page template not work in Customizer?

I have a weird issue where if I am in the Customizer and visit a page which uses a custom page template I made it doesn't load the site in the preview. But I can see that it loads in the console. I ...
0
votes
0answers
13 views

Customizer clicking section, navigate to different URL?

I found this code https://make.xwp.co/2016/07/21/navigating-to-a-url-in-the-customizer-preview-when-a-section-is-expanded/ which explains how to do this. But for some reason it doesn't work for me. ...
0
votes
1answer
17 views

Trigger Customizer Publish (save) Action

Is there any way to trigger the Customizer's Publish button in javascript? The use-case is to create a secondary save button within a section.
0
votes
0answers
23 views

set_query_var get_theme_mod not working on child theme

I created a child theme, and when I go into the customizer certain options which are read using "get_theme_mod" appear but they do not save or preview. I have the following code that works as desired ...
0
votes
1answer
74 views

Hide Theme options and Customize Admin menu

Under the appearance admin menu, I have customizer added by the theme, and theme options added by a plugin. I'm using this code to hide both menus ( submenu's of Appearance )for ALL admins apart from ...
1
vote
0answers
8 views

Child Theme disable customizer defaults

I am trying to extend twentyseventeen theme. I want to achieve two simple goals. No custom header image Don't show the Title and tagline by default. But I would like to keep those options available ...
0
votes
0answers
7 views

No favicon in Customizer?

For some reason my sites favicon isn't visible when I am in the Customizer in Wordpress. Is it possible to have the favicon show up here too? Thank you!
0
votes
1answer
12 views

Remove specific javascript when viewing page in Customizer?

I have a javascript which reloads the page when content change is detected. This is the behaviour I want on the main site. But when I use the Wordpress Customizer I don't want this behaviour as it ...
0
votes
1answer
21 views

Count top level menu items

I need to get count of top level menu items. I have menu with 5 items and of of them has 1 submenu. This is current situation, but the user using the theme I am building may have some different ...
0
votes
1answer
19 views

Edit style.css via theme customizer

Till now in my Wordpress themes, I was implementing few necessary styling options in theme customizer which would edit the CSS and override it by outputting that CSS to head inside <style> tags, ...
0
votes
0answers
11 views

$wp_customize - How can I add link to images?

I'm trying to add links to images on customize. Images, OK, but links, I did not find any reference, only this information on Codex. The code below is working (only for images). Help please :) "...
-2
votes
1answer
58 views

Refresh Customize Section (not preview)

I am building controls (a) that are generated using a value from a control (b) in another section. However, unless the full customize page is refreshed then then there doesn’t seem to be a way to ...
0
votes
1answer
12 views

Customizer add query to preview URL

In some part of our customizer we are redirecting users to some specific pages. var url = 'https://test.com/specific-page'; api.previewer.previewUrl.set( url ); We want to pass a custom query along ...
0
votes
0answers
24 views

WordPress panel is not loading after plugin activated with error: HTTP ERROR 500

when i try to activate Yoast Seo Plugin, my WordPress panel stop loading and the browser displays: HTTP ERROR 500. I checked my error_log file and there was this error: call_user_func_array() expects ...
0
votes
0answers
9 views

Customizer Get Control Choices on Change

I have a customizer RadioControl with 3 choices: menu-left, menu-right, menu-top. I want the chosen setting to be added to the body as a class, while the others are removed. Example <body class="...
0
votes
1answer
7 views

Change default color scheme in twentyfifteen child theme?

I read the previous ask about this. And tried renaming my scheme to "default" and it didn't work. I am implementing the child theme on 50+ blogs on a network and I would like to just click "Activate" ...
0
votes
0answers
12 views

Create customization options using theme customizer API based on the number of top level menu items

I am creating options for my theme, to customize and style menu items trough theme customizer. Each menu item will have its own options to change icon next to it and color. As I don't know how much ...
0
votes
0answers
7 views

How to get js var from wp.customize.previewer iframe?

I need to access the customizer preview iframe variable and currently I am doing this ( function( $, api ) { api.bind( 'ready', function() { api.previewer.bind( 'documentTitle', function( ...
0
votes
1answer
8 views

Sidebar visibility in {WordPress template Hyerarchy, Newspaper Theme, TagDiv Composer}

I have to admit that I often find Wordpress not so intuitive but let me explain what I mean in this specific case: The right sidebar is not whowed on the homepage? Why? How can it be? But ok.. let ...
0
votes
0answers
17 views

Bind JS event to Wordpress control customizer

I want to bind a click event to Wordpress custom control (Theme Customizer). I have tried with (customizer.js): $(document).on('click', '.element_class', function () { console.log(5); }); , but ...
0
votes
1answer
10 views

Exiting Customizer alert

I get an browser alert when exiting Customizer that my changes will be lost if I navigate off this page. Everything is saved in customizer, so when I navigate back to it, it shows the logo and ...
0
votes
0answers
13 views

Adding Help “?” icon to the registration page

I want to add the "?" to my registration page https://www.smartaspelare.se/registrera/ and want to make it look like the image attached . Clicking on the "?" should show some custom message as well.
0
votes
0answers
16 views

How to change theme customizer image control value using JavaScript API

I want to change the value of WP Customizer Image Control using JavaScript API. I tried to change the value with below code. But it does not work. wp.customize.instance(‘background-image’).set( ‘...
1
vote
1answer
12 views

How to hook on customizer section expanded/active/opened event?

I am trying to run js function when customizer section is expended and cant seem to find any event to do so. Something like this wp.customize.bind( 'ready', function() { wp.customize.section....
0
votes
3answers
28 views

Dynamic image for Jumbotron on WordPress Custom Theme

What is the correct process to make your jumbotron image dynamic (user changeable) via the WordPress customizer. Currently on my customers custom theme www.windupgram.co.uk I am using a static image, ...
1
vote
1answer
14 views

How to add styles set by user in the customizer

I want my theme to be very customizable, and so far i have provided the possibility to change text and link colors to the body, plus the background color which comes by default (I'm using the ...
0
votes
0answers
14 views

How to run customizer refresh on button click instead of on change event?

I have plenty of inputs in customizer and they all fire the preview refresh on change. This is ok but it is cumbersome when you know what you are changing and need to change several options at once. ...
0
votes
1answer
13 views

How to show some of category in wordpress

I listed all category in front page with get_categories() function But i dont want show all category in output For example i dont want show catgegory with id=25 How to should i do that? This is my ...
1
vote
0answers
23 views

Custom slider throwing an error

Hi am using Customised slider in my theme from another theme I add this code in my customizer.php function mytheme_customize_register( $wp_customize ) { //Slider $wp_customize->...
0
votes
0answers
30 views

add_action don't updates theme layout when using values from the WordPress customizer

I am trying to control the order of the information displayed in the WooCommerce single product page via the customizer with a sortable control. The user can select if the different elements are ...
0
votes
1answer
19 views

Place a message in theme customizer sidebar

How can you create a custom message in the theme customizer sidebar? Preferably at the top, under where you see the active theme title and the button to change themes. Why: For a project, all of the ...
2
votes
1answer
49 views

Can the Theme Customizer be used to generate static/cachable CSS, and how?

I am currently trying to make a customizable Bootstrap theme for my personal WordPress site, however, I am running into some issues. Bootstrap can be customized by modifying the SCSS variables, and I ...
0
votes
0answers
48 views

Customizer – Allow user editor to change website title and tagline

In the customizer you may change the site title and tagline (input fields) under »Site title & tagline« as an admin. When logged in as an editor the menu item is visible but when clicking on it ...