How to remove the featured image entry background and gravatar on single posts in Ambiance Pro

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.

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;
}
This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.