Archived topic
some searches cause the results and sidebar to display in 2 narrow columns
5 replies · Started by Martin on February 5, 2023
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.
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.
Yes let's override with a custom code please.
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%;
}
Thanks Fernando - that fixed it!
You're welcome, Martin!