Show featured image before post content

  • Kailash

    #10463

    Hi Syahir,

    I am using below function to show featured image before post content.

    its showing image on desktop site but not in mobile site. is there another code for mobile theme?

    function featured_img_thumb() {
    ?>
    <span class="post-thumbnail">
    <?php the_post_thumbnail(); ?>
    </span>
    <?php
    }
    add_action('graphene_before_post_content','featured_img_thumb');
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.