Tagged: x
-
AuthorPosts
-
August 1, 2016 at 2:25 am #1111669
Hi Guys,
Can anyone tell me how to add a border around navbar links similar to the sample below:
August 1, 2016 at 2:33 am #1111672Hello There,
Thanks for writing in! To add some borders in your menu items, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.x-navbar .desktop .x-nav > li > a > span { padding: 5px 10px; border: solid #fff 1px; }
Hope this helps. Please let us know how it goes.
August 1, 2016 at 2:42 am #1111683Just what I was after, thanks. How do I set the boxes to be the same size as per the sample?
August 1, 2016 at 2:53 am #1111695Hi There,
You can add width to the boxes.
.x-navbar .desktop .x-nav > li > a > span{ padding: 5px 10px; border: solid #fff 1px; width:130px; text-align: center; }
Hope it helps.
Let us know how it goes.
Thanks.
August 1, 2016 at 4:17 am #1111742Thank you, worked a treat!Two further questions:
1.) Now that I have added this CSS, my submenus don’t appear. Please see http://77.104.142.77/~webstein/sportingedge.co.nz/hockey/
2.) I’ve also added the code below to remove the orange line underneath navbar links – but they won’t go away?
.x-navbar .x-nav > li > a:hover, .x-navbar .x-nav > li.current-menu-item > a {
box-shadow: none;
}August 1, 2016 at 4:26 am #1111751Hi there,
Please add this code :
.x-navbar { min-width: 295px; overflow-y: hidden; } .x-navbar .desktop .x-nav > li > a { padding-top: 4px; padding-bottom: 4px; } .x-navbar .desktop .x-nav > li > a:hover > span, .x-navbar .desktop .x-nav > li.x-active > a > span, .x-navbar .desktop .x-nav > li.current-menu-item > a > span { box-shadow: none; }
If all submenus don’t display, please reduce navbar font size.
Hope it helps.
August 1, 2016 at 4:32 am #1111754Thanks, that removed the line under the links – but the Submenus still don’t display.
Works fine on mobile but not on desktop.
I have tried reducing the navbar font size
August 1, 2016 at 4:37 am #1111761Sorry, it didn’t help.
Please update it to :.x-navbar { overflow-y: visible; }
Hope it helps.
August 1, 2016 at 11:03 pm #1113191Perfect, that worked…
Sorry one more question, please refer to this thread: https://community.theme.co/forums/topic/adding-social-icons-to-side-menu/
I too want to have my social icons at the bottom of the left aligned Navbar. I have added the navbar.php file to x-child/framework/views/global but nothing has changed?
August 2, 2016 at 1:38 am #1113297Hi There,
You can achieve that by adding the
<i class="x-icon x-icon-heart" data-x-icon="" ></i>
tag on Navigation Label.In that case you need the icon unicode to supply on the data-x-icon attribute. Look for desired icon unicode here.
Hope it helps, Cheers!
August 4, 2016 at 7:10 am #1117158Hi Guys,
Thanks for the suggestion, but when I did it – only the phone icon would appear (even if I changed the name of the icon). Any other suggestions?
You’ll also notice I have borders around the navbar items – I don’t want the border around these social links, I would prefer to have them further down the Navbar. Is this possible?
August 4, 2016 at 9:04 am #1117302Hi There,
You need to change the whole code not just the name of the icon, you can find the correct code by inspecting the icons with your right mouse button on this page.
http://demo.theme.co/integrity-1/shortcodes/icons/
If you dont know how to do that please let us know which icons you are looking for.
Regarding the border, once you have placed the icons, please contact us and we will provide you the code to remove the border from the social icons.
Hope it helps
Joao
August 4, 2016 at 7:41 pm #1118053Thanks Joao!
I’ve added the logos, now I just want to remove the borders, make them bigger, and send them towards the bottom of the navbar.
August 5, 2016 at 12:39 am #1118466Hi there,
You can try this :
.menu-item.menu-item-type-custom.menu-item-object-custom, .x-menu-item-search { float: left !important; margin-top: 75%; width: 50px; } .menu-item.menu-item-type-custom.menu-item-object-custom a span, .x-menu-item-search a span { border: medium none !important; font-size: 24px; width: 140px !important; }
Hope this helps.
August 5, 2016 at 12:54 am #1118483Hi Simon,
You can try adding this under Custom > CSS in the Customizer.
.x-navbar .desktop .x-nav > li.menu-item-270 > a > span, .x-navbar .desktop .x-nav > li.menu-item-271 > a > span, .x-navbar .desktop .x-nav > li.menu-item-272 > a > span, .x-navbar .desktop .x-nav > li.x-menu-item-search > a > span { border:0; width:auto; font-size:25px; } .x-navbar .desktop .x-nav > li.menu-item-270, .x-navbar .desktop .x-nav > li.menu-item-271, .x-navbar .desktop .x-nav > li.menu-item-272, .x-navbar .desktop .x-nav > li.x-menu-item-search { display:inline-block; } .x-navbar #menu-sporting-edge { text-align:center; }
Hope that helps.
-
AuthorPosts