• Resolved MauroPedrosa

    (@mauropedrosa)


    I would like to know the easiest way to place the featured image below the post title and meta.

    Both in the homepage and the post page.

    Thanks in advance, great theme!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    Unfortunately this would not be easy. You will need to create a child theme and then copy over the /template-parts/content.php file into the child theme, then move a piece of code to the new spot.

    If you decide to do this, I can post the code that you would move and show where to move it, but one thing to make note of is that activating a child theme (if not already done so) means any customizer settings you did, such as colours, etc., will need to be redone. This is because WordPress will see the child theme as a new theme activation.

    Thread Starter MauroPedrosa

    (@mauropedrosa)

    I would like to give it a try and would appreciate the help

    Theme Author Shaped Pixels

    (@shaped-pixels)

    When you make your child theme, create a folder in it “template-parts” and then from the parent theme, copy over the “content.php” file and paste it in that folder (important to match the location like the parent theme has).

    Then, edit the file by opening it and look for this code:

    <?php // Check for featured image
        if ( has_post_thumbnail() ) {
            echo '<div class="featured-image-wrapper"><a class="featured-image-link" href="' . esc_url( get_permalink() ) . '" aria-hidden="true">';
            the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title(), 'itemprop' => "image"));
            echo '</a></div>';
        }
      ?>

    You will copy and move that code just below this line of code:

    <div class="entry-meta post-date"><?php senses_lite_entry_meta(); ?></div>
    Thread Starter MauroPedrosa

    (@mauropedrosa)

    Thank you!

    Thread Starter MauroPedrosa

    (@mauropedrosa)

    It worked like a charm. Thanks again

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Place featured image below post title and meta’ is closed to new replies.