Site logo

Archived topic

Featured image does not appears in indivual post

22 replies · Started by Fernando on November 2, 2017

Viewing posts 16–23 of 23

As of right now you'd need to manually hook it in like this:

add_action( 'generate_before_content', 'tu_add_featured_image' );
function tu_add_featured_image() {
    if ( has_post_thumbnail() && is_singular() ) {
        the_post_thumbnail();
    }
}

We'll be adding this as an option in the future :)

Perfect Tom. This works as expect
Yes, please add it soon :)
Best regards

The problem now is I am not able to set up the imagen under the title in individual post.
Any idea Tom?

Instead of generate_before_content, use generate_after_entry_header.

Much better! Thanks Tom.
Best regards

You're welcome :)

Do we need to apply the code mentioned by Tom @#525114 in GP version 2.3.2?

I have a site where the above code is applied in functions.php in the child theme?
Should I remove it?

Hi there,

by default the Featured image will be displayed when using a Header Element. There is an checkbox in the Element to disable it if you wish.

So no need for the code if you're using Header Elements.

This archived topic is closed to new replies.