Archived topic
How Can I Edit How a Archive Page Displays?
5 replies · Started by Janine on December 9, 2020
Hi,
I don't want this page to display with the last post at top and the older posts in a grid below.
I would prefer if the posts are just stacked on top of each full width of the container without a featured post.
How can I make that happen?
Thank you.
Hi Janine,
Just to confirm, you want to remove the featured post option, the 2 columns option and the masonry option for category archives only?
Let me know.
Yes, Ying.
Try to add this php snippet:
add_filter( 'generate_blog_columns','tu_portfolio_columns' );
function tu_portfolio_columns( $columns ) {
if ( is_category() ) {
return false;
}
return $columns;
}
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know :)
Thank you, Ying. That is exactly what I wanted. BE SAFE.
Great :)
You too!