Jump to content
Sign in to follow this  
adonnan

Add search to fixed navbar only on blog page?

Recommended Posts

adonnan

What would be the best way to accomplish this? To free up some space in my scrolling sidebar, it would be nice to add search to the fixed navbar, but only on specific pages (i.e. tag, category, and blog pages).

Share this post


Link to post
Share on other sites
batman

Hi adonnan

 

You can try add in

PageLines > Site Options > Custom Code > CSS Rules

or in

Pagelines Customize (plugin)

.home .navbar .searchform {  display: none;}

For example if you want to delete the search form in the home page.

My exemplary code is not necessarily applicable as written, to your site, so please adjust accordingly.

 

If you also wish to know how I find the page ID, all you need to do is load up FireBug or Google Chromes web dev tool and inspect your page html, at the top you should see body which has a number of classes assigned to it, one of these is page-id-XX (replace XX with your pages id value. I have added a danny´s screenshot to assist you.

http://screencast.com/t/HOsjhjnUIYX 

 

 

It is advisable to learn how to do this on your own too.  

Check out 

http://support.pagel...ion/custom-css/

 

If you need more CSS help, make sure you've downloaded Firebug for Firefox

and check out W3 Schools for more info. 

http://www.w3schools.com/

  • Like 1

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
adonnan

Thank you for the thorough reply. I went the route of .page .navbar vs .home

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  

×