Featured Image automatically inserted into posts

  • cjkorf

    #9092

    I am looking for a way to get my featured images to automatically insert into posts. I have looked around the forum and found this: https://forum.graphene-theme.com/graphene-support/featured-image-auto-insert-into-posts. This post says to insert the following code into my child-themes functions.php:

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

    That code works, but the thumbnail is a large image taking up the full width of the page, I am wanting the image to be 150×150 and located to the left of the post, like it is for the archive pages. Any ideas?

Viewing 1 post (of 1 total)

  • You must be logged in to reply to this topic.