[Resolved] Broken Category Page layout

Home Forums Support [Resolved] Broken Category Page layout

Home Forums Support Broken Category Page layout

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2264099
    Jesse

    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

    #2264238
    David
    Staff
    Customer Support

    Hi there,

    how has that page been constructed ? Are you using any custom templates or other tools to modify its HTML ?

    #2264787
    Jesse

    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

    #2265013
    David
    Staff
    Customer Support

    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/

    #2271373
    Jesse

    This worked perfectly. Thanks, David!

    Happy Fourth of July.

    Best regards,
    Jesse

    #2271605
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.