Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry – I posted a response on the wrong thread. I will loop back here when I can test this issue out.

    • This reply was modified 5 years, 7 months ago by Evan Herman. Reason: response on wrong thread

    Hi again,

    You’ll need to set the layout of the search results page through a custom PHP snippet. You’ll want to add the following into an MU plugin that you create, that allows you to override certain aspects of the Primer theme. You can follow along with our documentation we have setup: https://godaddy.github.io/wp-primer-theme/tutorials-and-examples/tutorials/mu-plugin.html

    Once you have the MU plugin setup, you can add the code I’ve provided below to it, and the search results page should then display in the three column layout you are after.

    /**
     * Set the search results page to three column
     *
     * @return string
     */
    function primer_search_three_column( $layout ) {
    
    	if ( ! is_search() ) {
    
    		return $layout;
    
    	}
    
    	return 'three-column-center';
    
    }
    add_filter( 'primer_current_layout', 'primer_search_three_column' );

    Let us know if that helps, or if you need additional assistance!

    Thread Starter fvelmntnja12

    (@fvelmntnja12)

    Yes that worked. While working with the search results page however, I noticed that the tab in Chrome for the page says “You searched for ‘x’.” Is there a way that I can change that to “Search results for ‘x’?” Thanks.

    Theme Author GoDaddy

    (@godaddy)

    Hey @fvelmntnja12

    We are closing this support request since it is unresolved and has not had any activity for over 1 month. If you are still needing assistance please open a new support request and we will assist you.

    Alternatively, check out our brand new theme Go. Go is an innovative, Gutenberg-first WordPress theme, hyper-focused on empowering makers to build beautifully rich websites with WordPress.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to use 3 column layout in search results page’ is closed to new replies.