Forum Replies Created
-
AuthorPosts
-
zubirdMember
I removed .site-header class from the style block. Here is the original, emphasis mine...
a.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.after-entry .enews,
.archive-pagination.pagination a,
.enews-widget input[type="submit"],
.nav-secondary,
.site-header {
background-color: #fe9601;
}zubirdMemberHave you tried including only the background-color elements you wish to change, i.e. remove the .site-header reference in the style block, like below? You may need to include the !important property for specificity if fighting with other style sheets beyond your control.
Don't forget the hover color!
a.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.after-entry .enews,
.archive-pagination.pagination a,
.enews-widget input[type="submit"],
.nav-secondary {
background-color: #fe9601 !important;
}a.button:hover,
button:hover,
input:hover[type="button"],
input:hover[type="reset"],
input:hover[type="submit"],
.after-entry .enews-widget input:hover[type="submit"],
.archive-pagination.pagination a:hover {
background-color: #00b796;
}zubirdMemberDid you remove the opening <? php tag as the comment suggests?
Add this to the functions.php file:
//* Remove the post meta function
remove_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );Not this:
<?php
//* Do NOT include the opening php tag//* Remove the post meta function
remove_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );Also, if you are editing through WP, you can sometimes hit your back button, remove the offending code and save it again to restore it. Or, if you are using ftp or an application like Dreamweaver, simply remove the offending code, then upload that functions file again. Refresh your browser and you should be back in business.
In other words, you should not have to do a complete restore, just restore the functions.php file.
zubirdMemberThank you! I think I can make this work. As a former Thesis user I must admit, there are so many more examples out there for Thesis. I've been looking for examples for hours and appreciate your help.
December 21, 2012 at 4:47 am in reply to: Code snippets – add body class to category or to page template #6608zubirdMemberHi Ladies,
I am trying to retain the chosen color (green) for my home page but change the color elsewhere on my site for certain pages and posts. I am able to add the new color class to the pages and posts, but thus far have been unsuccessful in removing the streamline-green class from anything. Among other things, here is what I tried:
/** Add custom body class to the head for certain pages or categories */
remove_action( 'body_class', 'nogreen_class' );
function nogreen_class( $classes ) {
if ( in_category( '4' ) OR ( is_page( 164 || 351 || 240 || 191 || 243 || 68 )))
$classes[] = 'streamline-green';
return $classes;
}/** Add custom body class to the head for certain pages or categories */
add_action( 'body_class', 'add_orange_class' );
function add_orange_class( $classes ) {
if ( in_category( '4' ) OR ( is_page( 164 || 351 || 240 || 191 || 243 || 68 )))
$classes[] = 'streamline-orange';
return $classes;
}Seems that it should work but does not. Any clues?
I do prefer to use a function so we don't have to worry about page level tweaking.
I appreciate any help.
Thank you!
-
AuthorPosts