Jump to content
Sign in to follow this  
n30

Customizing search page + StationPro

Recommended Posts

n30

Hello, how are you? I would like to customize my search page, I want the search results are displayed in full screen, I mean, something similar to the template "Full Width Page". I want it to search page does not include the "sidebar" and display the results as the sample template "Full Width Page". What should I do? Thanks for your responses.

Share this post


Link to post
Share on other sites
cmunns

modify the search.php file so that it doesn't have the get_sidebar call. Then I can help you create some css to make it full width.

Share this post


Link to post
Share on other sites
n30

Hi, how are you? Ready, the code was as follows:

<?php get_header(); ?>
	
	        <div id="content" class="fix" role="main">
	                <div id="maincontent">
	                        <?php include (LIB . '/_posts.php'); ?>
	                </div>
	
	</div>
	
	<?php get_footer(); ?>
	

The page looks like: http://ventura-systems.net/lab/screenshot.png So, can you help me with the css? Thank you.

Share this post


Link to post
Share on other sites
cmunns

Doin well thanks! Anyway for me to get a live link, it would be much easier for me so I can find the correct classes and ID's

Share this post


Link to post
Share on other sites
bryan-hadaway

Change search.php to this:

<?php get_header(); ?>
	
	        <div id="fullwidth">
		<div id="content" class="fix" role="main">
			<div id="maincontent" class="fix">
				<?php include (LIB . '/_posts.php'); ?>
			</div>
		</div>
	
	</div>
	
	<?php get_footer(); ?>

Upload it, refresh and check it out. If that does the trick please be sure and mark this thread as Resolved. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

simple fix. Add this custom css in the your theme options `.search #content {border-bottom:1px solid #282828;}`

Share this post


Link to post
Share on other sites
n30

Terrific!. Thank you very much to both.

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  

×