Using action hooks to place a featured image above post title

  • Tiga

    #8671

    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!

    Anonymous

    #41809

    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' );

    Tiga

    #41810

    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.