Site logo

[Resolved] some searches cause the results and sidebar to display in 2 narrow columns

Home Forums Support [Resolved] some searches cause the results and sidebar to display in 2 narrow columns

Home Forums Support some searches cause the results and sidebar to display in 2 narrow columns

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2522606
    Martin

    The results of a search normally are fine. But specific searches cause the results and sidebar to be displayed in 2 narrow columns not using the full width. It appears to be a GP theme conflict because I don’t get the issue with a different theme (Terragon).

    I will activate a link to the site (I’m using Local – login details below) if you want to see it.

    The search uses Relevanssi and the specific search that seems to cause the problem is for the word “field”. Also the word “algebra” (this is a math journal site). I haven’t found other searches yet which don’t work (most do), so I am really puzzled?

    I would appreciate any help you could give to troubleshoot this display of search results issue.

    #2522660
    Fernando
    Customer Support

    Hi Martin,

    Something is adding a <strong> tag to your sidebar. GeneratePress doesn’t do this.

    Can you try #1 here?: https://docs.generatepress.com/article/debugging-tips/

    We can override it though with a custom code if you prefer.

    #2522664
    Martin

    Yes let’s override with a custom code please.

    #2522669
    Fernando
    Customer Support

    You can try adding this through Appearance > Customize > Additional CSS:

    body.search.search-results div#content > strong {
        width: 30%;
    }
    
    body.search.search-results div#content > strong > strong > div#right-sidebar {
        width: 100%;
    }
    #2522775
    Martin

    Thanks Fernando – that fixed it!

    #2522793
    Fernando
    Customer Support

    You’re welcome, Martin!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.