Forum Replies Created
-
AuthorPosts
-
JetAviator7Member
I want to use the Blue theme color and NOT the Orange theme color which is currently being displayed.
There used to be a drop-down box in Genesis "Theme Settings" which allowed you to choose the theme color but that box has disappeared now.
There is a style.php file which is as follows:
<?php
add_action( 'genesis_settings_sanitizer_init', 'copyblogger_sanitization' );
/**
* Add style switcher setting to Genesis sanitization
*
*/
function copyblogger_sanitization( $pagehook ) {
genesis_add_option_filter( 'no_html', GENESIS_SETTINGS_FIELD, 'style_selection' );
}add_action( 'genesis_theme_settings_metaboxes', 'copyblogger_settings_metaboxes' );
/**
* Add metaboxes to the Genesis settings page
*
*/
function copyblogger_settings_metaboxes( $pagehook ) {
add_meta_box( 'genesis-theme-settings-style', __( 'Copyblogger Color Scheme', 'copyblogger' ), 'copyblogger_theme_settings_style_box', $pagehook, 'main', 'high' );
}/**
* Outputs the HTML necessary to display the extra form elements on Theme Settings
*
*/
function copyblogger_theme_settings_style_box() {$color_schemes = apply_filters( 'copyblogger_colors', array(
'copyblogger-blue' => __( 'Copyblogger Blue', 'copyblogger' ),
'copyblogger-orange' => __( 'Copyblogger Orange', 'copyblogger' ),
) );?>
<p><label><?php _e( 'Color Scheme', 'copyblogger' ); ?>:
<select name="<?php echo GENESIS_SETTINGS_FIELD; ?>[style_selection]">
<option value=""><?php _e( 'Copyblogger Red', 'copyblogger' ); ?></option>
<?php foreach ( $color_schemes as $id => $label ) {
printf( '<option value="%s" %s>%s</option>', $id, selected( $id, genesis_get_option( 'style_selection' ), 0 ), $label );
} ?>
</select>
</label></p>
<p><span class="description"><?php _e( 'Please select the Copyblogger color scheme from the drop down list and save your settings.', 'copyblogger' ); ?></span></p><?php
}add_filter( 'body_class', 'copyblogger_style_body_class' );
/**
* Filters the body classes to add the proper style-specific class.
*
*/
function copyblogger_style_body_class( $classes ) {if ( $style = genesis_get_option( 'style_selection' ) ) {
$classes[] = esc_attr( sanitize_html_class( $style ) );
}return $classes;
}
This looks to me like it is supposed to put a drop down box in the Genesis "Theme Settings" but it is not there.
Any suggestions?
JetAviator7MemberAll at once my theme color in my Copyblogger child theme has been changed to Orange and I want to use Blue.
There used to be a drop down box in the Geneses "Theme Settings" which gave me the choice, but now it has disappeared.
I see that there is a style.php file which says there will be a drop-down box somewhere but I can't locate where that drop down box is.
Can anyone help me change the color on my Copyblogger child theme?
My website is: Aviator Sunglasses
John
JetAviator7MemberI guess I just need to clear my cache - I see it is working now.
Thanks.
JetAviator7MemberInteresting - I had cleared the cache a number of times but it was still a problem.
Then I just cleared everything and the problem went away! Stupid me I guess!
Well, thanks for the quick response and help.
I love Genesis and it is a great platform to work with.
Have a Happy New Year!
Regards,
John
JetAviator7MemberStrange:
I use FireFox as my browser and when I look at it is not as wide as your screenshot, yet when I went to Google Chrome and Internet Explorer it was the correct width just as in your screenshot.
Must have something to do with my FireFox.
Thanks for the help.
Regards,
John
-
AuthorPosts