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
1answer
19 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
17 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
14 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 ...
0
votes
2answers
26 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
32 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/...
-1
votes
1answer
11 views

Editing theme for blog post page in four columns [closed]

I want to make my blog post page with four columns. But, by default, my site theme supports content with only one sidebar widgets. Need solution to make my site with blog posts in four columns.
0
votes
0answers
18 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
13 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
21 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
16 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
26 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
15 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
14 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
22 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, ...
0
votes
1answer
31 views

use value returned from shortcode as menu item

I have a menu that I created in Appearance -> Menus. One of it's items is the company phone number which is set in the theme customizer. I have a shortcode that will return that number: /* shortcode ...
0
votes
0answers
16 views

Show Nav Menu as dropdown in add_control choices for WP Customizer

I'm currently trying to show a drop down menu to select as the footer menu using the wordpress customizer API. Below is my add_control code $wp_customize->add_control( new WP_Customize_Control(...
0
votes
0answers
30 views

when i activate my WordPress plugin cannot see customizer options or preview

I created a WordPress plugin but when i activate it my customizer and its preview stop working. I have attached a screenshot below. I have tried to increase my memory to 8000M but it wasn't useful. ...
0
votes
1answer
21 views

Can I fake being in the customizer?

I'm trying to get a list of all theme mods / options currently registered. The normal way you can do it is to be inside the customizer, then $wp_customize->settings(). This will return a k,v pair ...
0
votes
1answer
9 views

My Wordpress Plugin code breaks customize.php viewpoint

I've been making a few tweaks to my plugin to try and get it back up and running with an upgraded API/backend. Sadly with my latest changes which commented out a few lines, I broke the backend view ...
0
votes
0answers
6 views

Display a product slider on the home page above the list of posts

Setting under Readings: Your homepage displays: Your Latest Posts. I want to display a product slider of a certain category (using WooCommerce) on the home page above the list of posts. The widget ...
0
votes
0answers
26 views

How to extend WP_Customize_Control in wprig

Hey I am a student and I am trying to create subclass to extend WP_Customize_Control class. I found a lot of examples but honestly I could not figure out how to implement this in wprig starter theme ...
0
votes
0answers
17 views

Use the fullscreen addon of CodeMirror in the Customizer of WordPress

I would like to use an addon of Codemirror in the customizer of WordPress. I have already register a textarea in the customizer, but how can I use an addon of Codemirror like the fullscreen? https://...
0
votes
0answers
15 views

Domain redirect seems to break WP customizer

I searched for answers and didn't find anything that was exactly the issue I'm dealing with... We have a domain with the following setup: domainname.com/articles (blog / wp - The site is installed ...
0
votes
0answers
33 views

How to add TinyMCE Editor to customizer in WordPress for replacing textarea type?

How to add TinyMCE Editor to customizer.php in WordPress for replacing textarea type?
0
votes
0answers
40 views

when to use the Wp customizer and when to use Wp widget?

im new to wordpress dev and im a little bit confused about building component like Call to action or search bar , should i use customizer or widget , and what is the pro and cons of both of them
0
votes
0answers
19 views

How to stop customizer settings inheritance from parent to child theme?

Whenever I change customizer settings, it gets applied to current parent theme AND child theme. If I change customizer settings on child theme, and then switch back to parent theme, the customizer ...
0
votes
0answers
9 views

Top header to edit page not present in one page

On one of our wordpress pages (we use polylang and it is only present on one language only), the top bar that appears when logged in as an admin to edit the page, customize the theme, access the ...
0
votes
0answers
12 views

How do I append options to a select box in the customiser from an API call?

I'm working on a WordPress theme and I've added a select box to allow users to select a font for their site. I figured I'd use the Google Fonts API to grab the list of fonts rather than add all 900-...
0
votes
0answers
15 views

Child Theme Aaron Customizer

I created a child theme Aaron and wanted under advance settings-> “check this box to hide the clickable site title in the header menu” to always be default checked. How do I modify this on the child ...
0
votes
1answer
19 views

fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term

fetch all post from wp multisite network and sort all the post in descending order on the basis of "Created by " term $all_blog = get_last_updated(); $countpost = 1; foreach ($all_blog as $...
0
votes
0answers
45 views

Change CSS Variable value in Theme Customizer Live Preview

I am trying to change a CSS Variable value in customizer and couldn't get live preview working using 'postMessage'. It works if I use 'refresh' option. Can someone please have a look at the code and ...
0
votes
0answers
11 views

wp customizer js preview - use setting based on other setting

I'm quite green at wp js framework; What i'm trying to achieve is that if setting 123 == a then assign setting_x to .header-banner background-color; else if setting 123 == b assign value of setting_y....
0
votes
0answers
24 views

Theme customizer preview screen is broken

My theme customizer preview screen is suddenly broken. A large part of the preview screen is not visible. It is"greyed out". I have tried the following. Tried disabling all plugins. Did not work....
0
votes
0answers
2 views

Link Directly to Customizer: screen size preview

I'd like to link directly to one of the preview screen sizes in the WordPress Customizer. I see this answer showing how to link to Customizer panels, but I'd like to also control which screen size ...
0
votes
1answer
34 views

How to allow users to create their own website within my domain? [closed]

I want to create a wedding website builder similar to theknot or withjoy.com. I want to provide the following features - User should be able to choose their own url slug User should have a frontend ...
1
vote
0answers
15 views

Customizer's “Imported Fonts” - How To Use Them?

How do I use the "imported fonts" options in WordPress's customize > fonts > choose font > "imported fonts" section? Trying to find info about this, but apparently no one's mentioned this anywhere. ...
0
votes
1answer
33 views

How to add Theme Customizer Color?

I'd like to add multiple options for the Color section of Wordpress Customizer, this is my code (the lower code (starter_new_setting_name2) overrides the upper): function starter_customize_register( $...
0
votes
0answers
28 views

Implementing multiple text inputs in customizer

I'm trying to implement multiple text fields as inputs for a custom section in the theme customizer for a theme I'm working on. Now I'm getting the ui on customizer where all social media textfields ...
0
votes
0answers
13 views

Wordpress convert html section to widget

I have converting html template to wordpress. In home page i need to create customize section. while converting i could't convert image with specific classes. HTML Code: <section class="homePanel ...
0
votes
1answer
16 views

Customizer section gone after adding second

I added a section to the customizer and everything worked fine. But after I added a second one the first one no longer appears. At first I thought that I had not changed the section ID, but that was ...
0
votes
0answers
9 views

Broken Customizer After Migration To The Skeleton Architecture

I've been trying to migrate an existing website from the standard Wordpress architecture to the Skeleton. The plugin stack includes Woocommerce. The theme is i-Craft. After the installation ...
0
votes
0answers
11 views

Plugin hook (location) customizer setting not refreshing in preview (but is on front-end and is upon hard refresh of backend)

I have a plugin that uses custom hooks to set the output location: function my_custom_posts() { if ( locate_template( 'template-parts/my-plugin-parts/featured-posts/custom-posts.php', false ) ) {...
0
votes
0answers
26 views

Change iFrame SRC for WordPress Theme Customizers Live Preview Feature

I've installed a WordPress application on a sub-domain (e.g, blog.domain.com) and am using a sub-directory (e.g, domain.com/blog) behind a reverse proxy as my permalink. WP uses the WP_HOME url as ...
0
votes
0answers
19 views

Wordpress template customization using Theme Customization API

I am currently developing a Wordpress plugin that generate custom post type. for that post type I am using different template. This template located in my plugin and I am assigning it by using filter "...
1
vote
1answer
34 views

How to add a default value to get_option if it's used as a variable?

How to add a default value to get_option if it's used as a variable ? The code : $my_options = get_option( 'my_options' ); // Associative Array 'my_options'. <div id="identifier" class="...
0
votes
0answers
20 views

WP_Customize_Image_Control doesn't show placeholder and Select image button

I am using WordPress v5.2.2. Customizer image control doesn't show placeholder and select button. Where is the problem? $wp_customize->add_setting( 'sample_default_image', array( 'default' =&...
0
votes
1answer
29 views

How Do I Create a WordPress Demo Site with Limited Admin Access

So I have developed a WordPress theme. Now I would like to setup a demo site for users to take the theme for a test run without having to install it on their end. It would have one demo account. With ...
0
votes
0answers
31 views

WP Menu editor is hiding options for menu items

I don't know why, but in my theme, customizer is hiding the options like css class for nav menu items, see the css code: .control-section-nav_menu .field-css-classes, .control-section-nav_menu .field-...