Archived topic
Re-position of the featured image
5 replies · Started by Francis on January 5, 2021
How can I move the featured image to appear after the main post content instead of appearing before it?
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 :)
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.
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/
Awesome. Thank you Leo, this is exactly the output I want to implement. Have a good day.
No problem :)