• Resolved darshan_cool

    (@darshan_cool)


    Hello Tom !
    How to Customize Search Result Page ? like Layout, Sharing, Comment and all other features of a normal Page.

Viewing 1 replies (of 1 total)
  • Theme Author Tom

    (@edge22)

    The search result page uses the blog index template.

    You can set the layout like this:

    add_filter( 'generate_sidebar_layout','generate_custom_search_sidebar_layout' );
    function generate_custom_search_sidebar_layout( $layout )
    {
     	// If we are on a search page, set the sidebar
     	if ( is_search() )
     	 	return 'no-sidebar';
    
     	// Or else, set the regular layout
     	return $layout;
    
     }

    Sharing and comments should come with the territory if they’re enabled on the regular blog index.

Viewing 1 replies (of 1 total)
  • The topic ‘How to Customize Search Result Page ?’ is closed to new replies.