[Resolved] Re-position of the featured image

Home Forums Support [Resolved] Re-position of the featured image

Home Forums Support Re-position of the featured image

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1607271
    Francis

    How can I move the featured image to appear after the main post content instead of appearing before it?

    #1607291
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question so I can see your current layout?

    You can use the private information field.

    Let me know ๐Ÿ™‚

    #1607317
    Francis

    Hi, sure here is one of our blog post for shades tester, I would like it to re-position the first image (featured image) and appear before the comments.

    #1607398
    Leo
    Staff
    Customer Support

    Try unchecking the Display featured images option for Posts in the customizer:
    https://docs.generatepress.com/article/adjusting-the-featured-images/

    Then add this PHP snippet:

    add_action( 'after_setup_theme', function() {
    	add_action( 'generate_after_content', 'generate_featured_page_header_inside_single', 5 );
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1607540
    Francis

    Awesome. Thank you Leo, this is exactly the output I want to implement. Have a good day.

    #1608586
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.