Jump to content
Sign in to follow this  
asmusa

Blog with Magazine Style Layout but Search Results using Blog Style Layout

Recommended Posts

asmusa

I like to use the "Magazine Style Layout" for displaying the Blog with 1 leading post but I like to have the Search Results using the "Blog Style Layout" which seems currently not possible. If the Blog uses "Magazine Style Layout" then the Search Results page uses it also - this is a little bit a shortcoming. Are there any conditional statements or hooks that can be applied to achieve the scenario as described above? Any help would be greatly appreciated!

Share this post


Link to post
Share on other sites
cmunns

Yes you would want to copy the template.postloop.php into your child theme and add a conditional Find this line: `if(!pagelines_show_clip($count, $paged) || is_admin()):` and add to it `if(!pagelines_show_clip($count, $paged) || is_admin() || is_search()):` This might end up doubling posts, but let me know and we'd have to add another to prevent clips

Share this post


Link to post
Share on other sites
asmusa

Hi Adam, thanks so much for your reply - greatly appreciated. It seems to work functionaly but as you mention it doubles up all search results and shows one search result in blog layout and another version either in the left or right column using the magazine layout. If we can get rid of the doubled-up ones that are columnized then that seems to work. Looking forward to the solution. Thanks again...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×