Jump to content


Photo
- - - - -

How to center classic navigation and delete the search bar

navigation help classic navigation formatting custom code classic navigation center navigation

Best Answer Rob , 19 July 2013 - 01:47 PM

Hawlie,

 

If you go to Dashboard > PageLines > Site Options > Header And Footer, you should deactivate the searchbar in Nav Classic from the settings, not from code.

 

Centering the menu does require custom code which you can test with Firebug or Chrome's Inspection Tools.

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 fabhousewife

fabhousewife

    Newbie

  • Members
  • 8 posts
  • LocationLos Angeles, CA
  • Framework Version:2.3.8
  • Country: Country Flag

Posted 18 July 2013 - 02:06 PM

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content

  323.37KB   0 downloadsI am trying to configure my classic navigation bar to eliminate the search bar. I've already unchecked the box under headers and footers, but because I've entered custom code to also center the navigation bar (found on another thread here), it appears to have overridden the original setting. Here is the code I have entered in the custom code area labeled CSS/LESS:

 

#site .navigation_wrap .main_nav { margin-right: 0; }#site .main_nav ul { text-align: center; float: none; }#site .main_nav ul > li { float: none; display: inline-block; }

 

Is there any way to keep the classic navigation centered while also eliminating the search box?

 

My website url is:

Please Login or Register to see this Hidden Content

 

I have also attached a jpg here showing what it looks like now. Thank you in advance for your help!

 

Hawlie



#2 Martin Davies

Martin Davies

    Advocate

  • Moderators
  • 2469 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 18 July 2013 - 05:56 PM

Hello Fabhousewife

 

Please can you give this a try 

 

Please Login or Register to see this Hidden Content



#3 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 19 July 2013 - 01:47 PM   Best Answer

Hawlie,

 

If you go to Dashboard > PageLines > Site Options > Header And Footer, you should deactivate the searchbar in Nav Classic from the settings, not from code.

 

Centering the menu does require custom code which you can test with Firebug or Chrome's Inspection Tools.



#4 fabhousewife

fabhousewife

    Newbie

  • Members
  • 8 posts
  • LocationLos Angeles, CA
  • Framework Version:2.3.8
  • Country: Country Flag

Posted 19 July 2013 - 03:02 PM

 

Hello Fabhousewife

 

Please can you give this a try 

 

Please Login or Register to see this Hidden Content

 

Martin,

 

Thanks so much for your quick reply! Your code did the trick, and I'm now good to go. Thank you, thank you!!



#5 Martin Davies

Martin Davies

    Advocate

  • Moderators
  • 2469 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 19 July 2013 - 04:34 PM

Hello Fabhousewife. 

 

Rob is correct, the way to do this is via the options rather than via code. 







Also tagged with one or more of these keywords: navigation help, classic navigation formatting, custom code, classic navigation, center navigation