This tutorial provides the steps to get rid of the entry background section (which shows the featured image) and gravatar on single posts in Ambiance Pro.
Before:
After:
Tested in Ambiance Pro 1.1.1.
Step 1
Edit functions.php.
a) Around L25 change
if ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ) {
to
if ( is_singular( array( 'page' ) ) && has_post_thumbnail() ) {
b) Around L48 change
if ( is_singular( array( 'post', 'page' ) ) && ! has_post_thumbnail() ) {
to
if ( is_singular( array( 'page' ) ) && ! has_post_thumbnail() ) {
c) Around L59 change
if ( is_singular( 'post' ) || ( is_singular( 'page' ) && has_post_thumbnail() ) ) {
to
if ( ( is_singular( 'page' ) && has_post_thumbnail() ) ) {
d) Around L229 change
add_action( 'genesis_entry_header', 'ambiance_gravatar', 7 );
to
// add_action( 'genesis_entry_header', 'ambiance_gravatar', 7 );
Step 2
Edit style.css.
a) Around L486 comment out or delete
.single-post .site-inner {
margin-top: 0;
}
b) Around L874 comment out or delete
.single-post .site-header {
background-color: transparent;
}
Hi, thanks for the share this tutorial. But, how to remove featured image in the home page?