Archived topic
Changing “Columns” layout on Search Results Page Only
4 replies · Started by Kyle Van Deusen on August 2, 2021
I'm using both GeneratePress Pro and GenerateBlocks Pro.
I've gone into the Customizer (Layout > Blog) and changed the settings for "Columns" to "Display posts in columns" and set my columns to 2. This is exactly the look I want for both my blog page, as well as my category and tag archive pages.
That's working like a charm!
However, I'm working on a "search results" page layout and it is inheriting that same 2-column layout.
What I'd prefer on the search results page is a single column layout (think more like the Google search results we're used to).
I imagine this will take a line of code somehwere, but I don't have the foggiest idea of where to start.
Any help would be greatly apprecaited!
Hi Kyle,
this article provides the snippet you're looking for:
https://docs.generatepress.com/article/using-columns-in-the-blog/#changing-the-number-of-columns
Wow, David — I totally missed that! Thank you — you guys have thought of everything :)
Working perfectly now! https://ogalweb.com/?s=website+design
Awesome - looks great!