Change the CSS of the Customizer API

Definitely, you can use the customize_controls_enqueue_scripts hook to load custom CSS and JS. This is an example of making the panel 400px: File: sample-theme/css/customizer-controls.css .wp-full-overlay.expanded { margin-left: 400px; } .wp-full-overlay-sidebar { min-width: 400px; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { margin-left: -400px; } File: sample-theme/functions.php /** * Enqueue style for customized customizer. */ function sample_theme_customize_enqueue() { wp_enqueue_style( ‘custom-customize’, … Read more

Getting array of customizer settings

Yes. You can get an array of all registered settings via $wp_customize->settings(). If you want to display them all you could do this: if ( is_customize_preview() ) { global $wp_customize; $theme_mods = array(); foreach ( $wp_customize->settings() as $setting ) { if ( ‘theme_mod’ === $setting->type ) { $theme_mods[ $setting->id ] = $setting->value(); } } echo … Read more

Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize

It seems I got some faulty nginx configuration from an article on how to configure WordPress in a subdirectory. Config Before location @wp { rewrite ^/blog(.*) /blog/index.php?q=$1; } location ^~ /blog { root /home/user; index index.php index.html index.htm; try_files $uri $uri/ @wp; location ~ \.php$ { include fastcgi_params; fastcgi_index index.php; fastcgi_intercept_errors on; # Deleted this … Read more

Custom panel/section link styling in customizer

Yes, it’s possible to change the color and other CSS properties of a section and panel title/link. You just have to figure the CSS selector. Here’s the selector pattern for section and panel. #accordion-section-SECTION_ID_GOES_HERE .accordion-section-title { /* add CSS properties here */ } #accordion-panel-PANEL_ID_GOES_HERE .accordion-section-title { /* add CSS properties here */ } Say, you … Read more

How do I add a customizer control dynamically?

I didn’t really used Customizer, but what you need is called „conditional display” (at least this is the term used in ACF & co). That being said, I found this article that may help you: https://florianbrinkmann.com/en/3783/conditional-displaying-and-hiding-of-customizer-controls-via-javascript/ Also, this SE topic: Is it possible to conditionally displaying and hiding of customizer controls for each device preview?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)