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

How can I edit a php custom page template to work in other themes?

How do I edit a php custom page template to work in another wordpress theme? Do I just have to take out the header codes or do I have to edit a whole php page? Header area Thank you for any input. ...
1
vote
1answer
9 views

How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme

I want to add some custom HTML code on the home page of my school's website. I managed to do this by adding the HTML code into the Main Index Template (index.php) file of the theme, however the code ...
1
vote
1answer
24 views

Shrink Header Image on Scroll

I am currently using the free version of neve on a local server and I am trying to make my sticky header responsive based on the scroll. The text is responding correctly and becoming smaller, however ...
0
votes
1answer
6 views

Default customizer colors aren't displayed outside of the preview

I've been working on a custom theme & going through the usual rollercoaster that accompanies this particular exercise. I do find it very rewarding but what I'm looking at right now is the theme's ...
-1
votes
0answers
14 views

Can you switch between light and dark theme on Wordpress with a toggle? [closed]

I have a business website that I am developing with Elementor Pro. I want to toggle between a light and dark version of the website (it is currently dark only). It's a single page website with ...
0
votes
1answer
10 views

Removing Image Links from Custom Post Type

I have purchased a theme from themeforest and they have a custom post type to create a masonry view of images. 1) When I add the custom post type (included in the premium theme) the images in the ...
0
votes
1answer
10 views

Image cropping isn't working correctly when using Offload Media

I've been working on a custom theme using the blankslate boilerplate & I'm happy with how it performs with a few minor details. This one concerns image cropping when a site uses the Offload Media ...
0
votes
0answers
8 views

Create custom control for WordPress customizer using JavaScript

I followed this link to learn about how to create a custom control for customizer in Wordpress. According to their doc, I made a control using this code wp.customize.control.add(new wp.customize....
0
votes
0answers
6 views

Customizer on subsite only edits mainsite problem

When I follow the links to the customizer for the subsite, it shows the main site in the editor. Changes are also applied to the mainsite instead of the subsite. Normal Multisite setup without ...
0
votes
0answers
8 views

twentytwenty theme: what is the css selector(s) for Desktop Expanded Menu

I'm using the twentytwenty theme and would like to modify the appearance of the desktop expanded menu. What are the css selector(s)? Specifically, I'd like to narrow the overall menu width. Once I ...
0
votes
1answer
12 views

Customizer Appearance Issue

I am developing new WP theme and it's in the phase of beta testing. So, it has succesfully installed and it's working on some sites. But, now there is one problem on particular host server. (shared ...
0
votes
0answers
16 views

How do I update the wpColorPicker palette after initialization?

Once the customizer color picker is initialized, how can the color palette be updated? The palette can be set through the js options before it's initialized using something like: jQuery.wp....
0
votes
0answers
11 views

Keep customizer sidebar when editor logged in

I would like to keep the customizer sidebar always available when any editor is logged in. How ould i do that ? Thanks Yaz
0
votes
0answers
7 views

ModernThemes builder issue

I am checking pages on a wordpress that use a theme called ModernThemes, as far as I go, looks like none of the pages in the site looks like the site online, I am trying to change things and add some ...
0
votes
0answers
12 views

Install and using custom .otf fonts

I've seen some guide on the net that are using the customizer to let the user select a cutom font for the active theme. I have a custom font that is used from the client for his materials, he want to ...
1
vote
1answer
20 views

How to add field customizable by the theme editor to your theme?

I'm adapting a theme for my use, and it currently doesn't have a field for a banner in the header and I would like to add one. But rather than hardcoding it into the theme, I would like to be able to ...
0
votes
0answers
41 views

DIVI Theme customizer changes not applied on existing pages

I'm using the Divi theme on a localhost created by WAMP Server. The changes I make using the theme customizer menu are updated correctly in the preview screen (header, background colour, logo size, ...
0
votes
0answers
19 views

Different custom logo in header & footer in wordpress theme development

I am developing a wordpress theme and has added the logo to my sirw using 'custom_logo' function of wordpress. Is there any possibility to have two different custom logos for header & footer?
0
votes
0answers
60 views

Wordpress Custom Theme : Theme Builder vs ACF vs Gutenberg

My website has only 5 pages with no sidebars. I want to convert a PSD file to Wordpress theme. I have 3 options and I am confused which one I choose: Using a site builder tool like Elementor/WP ...
0
votes
0answers
17 views

Edit footer via customizer

I am creating my own theme. I would like to edit the footer in the customizer. I was able to enable the custom logo etc. but I can't find a solution how to enable the footer button in the customizer. ...
0
votes
1answer
20 views

where is real values of variables?

I am working on editing the theme now for our center website, we are using Benevolence WordPress Theme. My question might look too obvious to most of you but I am new to word press and spending too ...
0
votes
0answers
62 views

Wp customizer range slider live preview

I have this: function cd_customizer_settings( $wp_customize ) { $wp_customize->add_setting( 'global_font_size' , array( 'default' => 16, 'transport' => 'postMessage'...
0
votes
0answers
24 views

Inserting bootstrap in a theme that does not uses it

So I'm working wth TOTAL theme, but I do not know how to change columns and rows sizes, so I tried installing bootstrap in the pages I want to work with Bootstrap... I download bootstrap in the css ...
0
votes
0answers
18 views

Button add in cusomizer section

I want to add a button in the $wp_customize section. I add all section but i dont know how can i add button for resume please help. Below is my code: <div class="text-over-img"> <p ...
0
votes
2answers
25 views

Using Customizer API vs Custom Meta Box for custom content

I just started diving into the wordpress world and i'm trying to add custom content to a website, i looked at the Customizer API and Meta box and they seem to be both able to add what i want which is ...
0
votes
1answer
40 views

How to Change CSS Variable value in Theme Customizer Live Preview

/** * Registers settings and controls with the Customizer. * * @param WP_Customize_Manager $wp_customize Customizer object. */ function mytheme_customize_register( $wp_customize ) { $...
0
votes
1answer
46 views

Extending WP_Customize_Media_Control to return filename

Is there a Wordpress "correct" way to extend WP_Customize_Media_Control to return the filename instead of attachment ID to the wp.customize preview function? I am using the media control to save a ...
0
votes
0answers
24 views

How to add a setting to a custom control defined in the parent theme for use in the customizer?

I am using the Spicepress Pro theme and its child theme Stacy. It provides a settings page in the customizer to customize the slider on the homepage. Every Slide is customized by a custom class that ...
1
vote
1answer
17 views

Which action is triggered when a theme was modified?

I want to intercept plugin changes, but no action hook listed in the Action Reference seems to do it. I tried after_switch_theme which is triggered only after changing from one theme to another, and ...
1
vote
1answer
30 views

Multiple Conditional Controllers

I am trying to setup multiple instances of conditionally displayed items in the customizer. This code works for any one instance of the conditional_display() function, but won't do all three (...
0
votes
0answers
24 views

How to dynamically allow editor to access customizer on multisite?

Background For reasons I don't want to permanently grant the required capabilities to editor users to allow them to access the Customizer. So I'm using user_has_cap filter to set capabilities for ...
0
votes
0answers
8 views

I have problem with elemetor navmenu section

in free elementor when I use default Navmenu it will add a button up side of the menu and create the menu vertically istead of horizentally
0
votes
0answers
18 views

Overriding font path

Uploaded the font file to AWS. When accessing Customize > Additional CSS and try to add @font-face rule then save it. The AWS url has been replaced by WP upload path. Hope to find solution here. ...
0
votes
4answers
297 views

How to disable automatic colors in the Twenty Twenty theme?

I'm using the Twenty Twenty theme to create a website, and I want to totally disable the automatic colors that Wordpress generates based on the accent hue. I have very specific branding guidelines to ...
1
vote
0answers
36 views

customize_controls_enqueue_scripts doesn't fire from within my plugin

I have a plugin that builds a Class which handles injecting Customizer features. Within it I am inserting: Customizer Panel > Section > Settings/Controls The controls I am I am injecting a Select ...
0
votes
1answer
20 views

add a section in wordpress theme to upload image and process it

I want to add a section in wordpress theme in which user can upload an image and then this image sent to server and process and result show to user in that page. is it possible to so this in wordpress?...
0
votes
1answer
22 views

wordpress-theme 2017: featured image behaviour: where to set the height of the featured image?

good day dear community, after having nailed down several issues with the set up of the theme twentyseventeen - the question today is: wordpress-theme 2017: featured image behaviour: where to set the ...
0
votes
2answers
18 views

How to add locations input to user profile?

I want to display user's locations which they travelled on author box so how can I add this kind of input area to users profile? To more explain, If a user add "Londra,Paris" to own profile, these ...
1
vote
2answers
221 views

What is the difference between sanitize_text_field() and wp_filter_nohtml_kses()?

I need to sanitize some custom settings added with the Customize API, namely some simple text fields. Other data types have some dedicated functions, i.e. email addresses should use sanitize_email(), ...
0
votes
1answer
40 views

Please show me how to use an if/else statement in combination with wp_enqueue

In my theme I have the following code in my functions.php to enqueue my my stylesheets. function mytheme_styles() { wp_register_style('headerMobile', get_template_directory_uri() . '/assets/css/...
0
votes
0answers
21 views

How to work with a custom theme that someone else created before me? (details below)

A company hired me as a web designer. Their website was designed by a private company that created the WP website from scratch: they customized a theme, installed all the plugins needed back then, and ...
0
votes
1answer
16 views

How to add a link to an external website in the description of a customizer control (with Kirki)?

I'm building a Wordpress theme and I use the Kirki Customizer framework to add controls and settings to the customiser. I added a description to some controls, using the following code: 'description' ...
0
votes
0answers
11 views

When selecting “customize” for a subsite, the preview doesn't render, only the login page

I'm trying to customize the theme for a subsite, and in the customizer, it doesn't display a preview of the subsite, but rather, a login page. I've entered my credentials into the login page, clicked ...
0
votes
0answers
29 views

Use of CSS media queries with Customiser and preprocessor?

I'm building a Wordpress theme, which is, of course, responsive. In my CSS I've used media queries, to differentiate styles between desktop and mobile. Currently I'm making the theme compatible with ...
1
vote
0answers
22 views

Translations appear in the WP Customizer, but not on the website!

I have a strange issue: I have translated my website into 2 languages with the Polylang plugin. Main language is French, translations EN and ES. Some strings (like Read more, x Comments, No Comments, ...
0
votes
0answers
91 views

TinyMCE in customizer is Not working Properly

I used this code for tinyMCE for my wordpress theme https://wordpress.stackexchange.com/a/274333/77065 but when I try to put text and use option like Bold nothing works, Even after entering text ...
1
vote
0answers
17 views

How do i make a custom section's setting display the default value in Customizer?

Have made a custom section that displays in the Customizer. It has controls for image upload and text inputs for both the heading and its link. I want to be able to show a default heading and link ...
1
vote
0answers
18 views

customizer options not showing

I have a wordpress installation where the customize options have disappeared. I already disabled all plugins, but it did not solve the problem. What more can I do? Thanks in avance.
0
votes
0answers
8 views

Pin featured posts to main slide without changing date

I want to make a modification to a slide that appears on my main page, but I don't know how to do that. The site uses the "Carmack" template and here is his template: https://prothemedesign.com/theme-...
1
vote
0answers
28 views

Dynamically loaded Theme components based on Customizer Settings values : changes not appearing in Customizer preview - (Workaround found)

I'm trying to create a WP theme (for personal learning purposes, still pretty new to wp) where Header/Container/Footer are each chosen based on a dedicated customizer setting (still plain text, ...

1
2 3 4 5
17