Archived topic
Change order Title, featured image, date
5 replies · Started by Naomi on July 31, 2019
Hello, I've been searching through the forums and the documentation and I'm sorry if I missed anything.
The closest I came to finding what I'm looking for was this post: https://generatepress.com/forums/topic/entry-meta-config-sidebar-heading-changes/ but I wasn't able to change that to what I had in mind.
I was wondering, is it possible to change the order within posts to Title, featured image, date? Both on archive pages and in single posts, though if I'd have to choose, I want this most on single posts.
I would love to hear, thank you!
Hi there,
First, you can set it so your featured image is below the title here: https://docs.generatepress.com/article/adjusting-the-featured-images/
Then, we can move the post meta below the featured image like this:
add_action( 'after_setup_theme', function() {
remove_action( 'generate_after_entry_title', 'generate_post_meta' );
add_action( 'generate_after_entry_header', 'generate_post_meta', 15 );
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know if you need more info :)
Hello Tom, thank you for responding.
I've added this using Code Snippet. I've set it to run everywhere and the snippet is activated but the order hasn't changed yet.
I've added a link to my original question so you can see what it looks like now.
If you need anything from me, please let me know.
Thank you!
I just adjusted the snippet above - can you give it another shot?
Let me know :)
Oh! Beautiful! Yes, that works. Thank you :)
You're welcome :)