Archived topic
Broken Category Page layout
5 replies · Started by Jesse on June 25, 2022
Hello,
I'm not sure what happened, but the sidebar on my category pages is showing up underneath my content instead of to the right side, and the post thumbnails are showing up with a large gap in between them. It's easiest to see on the desktop. I added some links in the private area. Can you please help me fix this?
Best regards,
Jesse
Hi there,
how has that page been constructed ? Are you using any custom templates or other tools to modify its HTML ?
Hi David,
I was able to identify the plugin that was causing the issue and disabled that specific feature.
However, one of the optimizations was that it removed the intro text that appears at the top of the category page for pages 2, 3, 4, etc. so the into text would only appear on the top of the 1st page (better UX).
Is there a way to do that in GeneratePress?
Best regards,
Jesse
Try adding this PHP Snippet to your site:
add_action( 'wp', function() {
if ( is_paged() ) {
remove_action( 'generate_after_archive_title', 'generate_do_archive_description' );
}
} );
This article explains how to add PHP:
https://docs.generatepress.com/article/adding-php/
This worked perfectly. Thanks, David!
Happy Fourth of July.
Best regards,
Jesse
Glad to be of help