Site logo

Archived topic

Customizer showing only Widgets

7 replies · Started by Espresso on August 13, 2020

Viewing posts 1–8 of 8

Hi there,

Customizer is only showing Widgets. Not sure if it was the Wordpress update. It works with the theme "Twentyseventeen".

I have disabled all plugins but still nothing.

This is what I see when I click inspct on the Customizer button:
[DOM] Found 4 elements with non-unique id #_wpnonce: (More info: https://goo.gl/9p2vKq)

Thank you!

Dan

Hi there,

can you clear any plugin / server caches. And clear any browser cache and temporary files.

Let me know.

Hi David,

tried to disable everything and clear all caches.

Nothing worked. Only if we change theme.

Does reinstalling the theme and premium plugin help at all?

Are you using a child theme?

Any custom functions?

I am having the same issue. Customizer is only showing Widgets. I have tried disabling plugins, switching back to parent theme, removing all unnecessary functions, etc.. but nothing happens. Could this be a compatibility issue?

Mine resolved when I removed all functions from the file Functions.php

Found the solution here. Seems like there is some sort of conflict with WordPress 5.5

This code needs to be added to the theme's functions.php:

if( is_admin() ){
	add_action( 'wp_default_scripts', 'wp_default_custom_scripts' );
	function wp_default_custom_scripts( $scripts ){
		$scripts->add( 'wp-color-picker', "/wp-admin/js/color-picker.js", array( 'iris' ), false, 1 );
		did_action( 'init' ) && $scripts->localize(
			'wp-color-picker',
			'wpColorPickerL10n',
			array(
				'clear'            => __( 'Clear' ),
				'clearAriaLabel'   => __( 'Clear color' ),
				'defaultString'    => __( 'Default' ),
				'defaultAriaLabel' => __( 'Select default color' ),
				'pick'             => __( 'Select Color' ),
				'defaultLabel'     => __( 'Color value' ),
			)
		);
	}
} 

Keep in mind that anything added to the parent theme's function.php then it will be erased during updates.

This archived topic is closed to new replies.