Aligning 2Nd Nav Bar To Centre
#1
Posted 01 November 2012 - 03:25 PM
I was wondering if it is possible to align one specific secondary nav bar to the centre? Presumably, if it is possible, I would need some CSS code. Can anyone help? The name of the menu is VILLA JASAMIN
http://www.insidemani.gr/villajasamin/
Thanks
#2
Posted 02 November 2012 - 12:46 AM
Each menu item you create can have it's own CSS class. Simply go to Dashboard > Appearance > Menus and on the top, right side, click "Screen Options". When a new panel opens, you'll see a check box for CSS Classes. Check it then click "Screen Options" again.
Now, on each menu item, there's a new field where you can enter the new, unique CSS class. Make sure it's something totally unique.
Then, you can assign a margin-left and margin-right or margin:auto; to those unique elements, creating the centered effect only for those menu items.
#3
Posted 02 November 2012 - 08:35 AM
I followed your instructions but the CSS field did not appear. Any other ideas? By the way, I should have said that I am not a developer and so would also appreciate advice on what CSS code i should enter if we can solve the problem of the field not appearing.
Thanks again
Groves
#4
Posted 02 November 2012 - 02:49 PM
What CSS classes did you enter?
#5
Posted 05 November 2012 - 01:45 PM
I didn't use any CSS classes as the new field for entering CSS classes did not appear on my menu settings page, having followed the instructions from my first reply. Could I enter this CSS code anywhere else? And if so, what code should I use? All i want to do is to centre align 1 particular menu.
Thanks
groves
#6
Posted 05 November 2012 - 06:17 PM
#7
Posted 06 November 2012 - 02:47 PM
CSS (I think). To retrace; I want to align centre 1 specific secondary navigation bar. I went to APPEARANCE- MENUS- SCREEN OPTIONS and checked the CSS classes box. BUT, the new field allowing me to add new CSS classes did not appear (and in any case, I would not know what to input). This is my problem. i don't know what CSS code to input and I don't know where to put it anyway!
I hope this clears things up,
Regards
Groves
#8
Posted 06 November 2012 - 05:54 PM
#9
Posted 07 November 2012 - 11:14 AM
Thanks for that but sadly it didn't work. Can I not add some CSS in the Platform Pro settings? If so, what should I input? Or, any other ideas? Do you have any idea why I do not get a CSS field on my menu settings page, even though I checked the correct box in screen options?
Groves
#10
Posted 07 November 2012 - 03:47 PM
The CSS would need to go into PlatformPro settings > Custom Code > Custom CSS, but if you're trying to add a CSS class to your menu items, can you please post a screenshot of your Appearance > Menus screen?
#11
Posted 08 November 2012 - 04:53 PM
I wasn't allowed to paste my screenshot.
Groves
#12
Posted 08 November 2012 - 04:55 PM
#13
Posted 09 November 2012 - 09:42 AM
Groves
#14
Posted 09 November 2012 - 03:11 PM
#15
Posted 10 November 2012 - 09:33 AM
My site crashed yesterday due to a plugin I insalled. It's OK now
http://www.insidemani.gr/villajasamin/
Groves
#16
Posted 10 November 2012 - 06:17 PM
This is WordPress, not PageLines, so it must be in your site.
Inside the CSS Classes (optional) field (shown in the 2nd picture, in the menu item), you can type in the unique class as previously suggested. This will allow you to apply specific CSS to that one menu.
So, for a unique class, and an example, your first (left) menu item would be villamenuitem1
In reality, you only need to do this with the first item.
Then, when you have saved the menu, you'd create the CSS like this:
.villamenuitem1 {margin-left: 100px;}By applying this to Custom Code > CSS Rules, you move the menu over to the right by 100px. You can adjust that one number as you wish to make the menu look centered. There are other ways to center it, but essentially, this was the easiest.
Attached Files
Also tagged with one or more of these keywords: nav bar, align centre, secondary nav bar
Change the Menu´s Pages linksStarted by cediazb , 17 Apr 2013 |
|
|
||
Free Theme Support →
PageLines Lite Edition →
Customization to the Nav BarStarted by aliciamariephillips , 02 Apr 2013 |
|
|
||
PageLines Framework →
Technical Support →
Multiple Levels in Nav BarStarted by worldofmark , 06 Mar 2013 |
|
|
||
Header and nav bar customizations, helpStarted by acastrolorenzo , 11 Feb 2013 |
|
|
||
Nav Bar issue - add a level impact on topStarted by znsols , 13 Jan 2013 |
|
|












