Header Text-ColorPicker disappeared when Plugin activated
-
Hi and Thanks for that great plugin.
I just ran into a minor issue when I activated it. The color picker to define the Header Text-color just disappeared. I realized that the “add_theme_support”-function in the main.php-file (line 456) caused this.
The Array contains ‘textcolor’ => ‘ffffff’ while the default text-color is defined by ‘default-text-color’. So when I changed the line toadd_theme_support( 'custom-header', array( 'default-text-color' => 'ffffff', 'admin_header_callback' => 'gsh_admin_style' ) );
everything worked fine again. I’d appreciate it if you could add this in a future update.
Also when using eleven40 child theme I had trouble replacing the original image. I managed to fix this by adding
'CSS_ADVANCED_HIDE' => '#title, #title:before, #title:after',
to the eleven40-array.Another problem with eleven40 is that the header-height is set to 90px. I changed this by adding
<?php if ($gsh_theme_name == 'eleven40 Child Theme') { echo 'min-height: ' . HEADER_IMAGE_HEIGHT . 'px;'; } ?>
to the gsh_advanced_style-function. I was wondering if you can think of a more elegant way to add this possibility to the plugin so it can gradually be predefined for other themes that work like this.
https://www.ads-software.com/extend/plugins/genesis-simple-headers/
- The topic ‘Header Text-ColorPicker disappeared when Plugin activated’ is closed to new replies.