Archived topic
placing images below title on category pages
3 replies · Started by simit on January 9, 2020
hello,
here is an example of my category pages: https://cfdtrading.com/category/forex/
i'd like to modify it so that the sequence of items pertaining to each post is as follows:
title
date, author
excerpt
image
the current sequence places the image above everything else, including the title.
i have the wp show posts plugin installed, which allowed me to tailor things as i prefer for the home page. but how can i modify category pages?
Hi there,
Set the featured image location to below title in the customizer:
https://docs.generatepress.com/article/adjusting-the-featured-images/
Then add this PHP snippet:
add_action( 'after_setup_theme', function() {
remove_action( 'generate_after_entry_header', 'generate_post_image' );
add_action( 'generate_after_content', 'generate_post_image' );
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know if this helps :)
that worked perfectly -- thank you so much, leo!
No problem :)