Site logo

Archived topic

Can't get featured image to show up on blog page

7 replies · Started by Nick on December 31, 2018

Viewing posts 1–8 of 8

Brand new user here. I'm using the Mellow Site Hero for my blog/posts page and have the background set to featured image, but simply cannot get the featured image to show. The fallback image does work though.Also, how can I remove the word "BLOG" from the top of the page?

Hi there,

The featured image is the background image for your hero area. Are you also wanting it to the display inside your content area?

To change the blog title, try this function:

add_filter( 'generate_page_hero_post_title', function( $title ) {
    if ( is_home() ) {
        return 'My Blog Title Here';
    }

    return $title;
} );

Thanks for your reply.
For the featured image, no, I don't want it to also display in my content. The problem is that the image in my hero header is not my featured image, but I want it to be. The one that is showing in the header here is my fallback image, as set on the hero page settings.

For the blog title, I just want it to be blank, and not display the word "blog" on top of my header image. Is that possible?

Thanks a lot!

When I go to your single posts, I see the featured images as the hero background image.

Is there a specific post or page that isn't using the featured image as a hero background?

To show no title at all, try this:

add_filter( 'generate_page_hero_post_title', function( $title ) {
    if ( is_home() ) {
        return '';
    }

    return $title;
} );

Thanks!

You're welcome :)

I got same issue as Nick for blog archive page. There is no way to show image header.

https://testing.abracadabra.photography/blog/

it does work in pages an articles and there is no exclusions in elements for blog page

Hi there,

Can you open a new topic for your question?

Thanks!

This archived topic is closed to new replies.