Return to Support

Using action hooks to place a featured image above post title

Home Forums Graphene WordPress theme Support Using action hooks to place a featured image above post title

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8671
    Tiga
    Member

    I’d like to place a featured image above titles of my posts (class=”post-title”). This was brought up in an earlier query, but I’m not familiar enough with action hooks to follow the advice being given. I appreciate any help with this. Thanks!

    #41809
    Luko
    Member

    It’s quite simple 😉

    put this in your child-theme functions.php:

    function thumbnail_single($post_ID) {
    the_post_thumbnail ();
    return $post_ID;
    }
    add_action( 'graphene_before_post', 'thumbnail_single' );

    #41810
    Tiga
    Member

    Thanks! That answers my question. Just getting the hang of the action hooks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.