- This topic has 13 replies, 2 voices, and was last updated 5 years, 5 months ago by Leo.
-
AuthorPosts
-
December 8, 2017 at 2:34 am #444628scott doel
Hi All,
Have looked and I cant see a request for this.
My site is at highestperforming.com and rather than using the secondary menu I would like to add a divider line before I add my social icons, with a little padding also.
I’ve tried the align right tutorial for social but its not quite the look I wanted
December 8, 2017 at 8:42 am #444900LeoStaffCustomer SupportHi there,
You can use the same method here: https://docs.generatepress.com/article/adding-buttons-navigation/
Let me know if you need help modifying the CSS.
December 8, 2017 at 10:02 am #444984scott doelThanks Leo,
I have that one but not sure what to amend it to, sorry. I just want one | with 10px either side
December 8, 2017 at 11:16 am #445041LeoStaffCustomer SupportJust to make sure, you want the divider on the right of BLOG/left of facebook icon?
December 8, 2017 at 11:21 am #445045scott doelyes please buddy
December 8, 2017 at 11:28 am #445053LeoStaffCustomer SupportYou can add the
social-divider
class to the facebook icon, then this should be the CSS:@media (min-width:769px) { .main-navigation .main-nav ul li.social-divider a { border-left: 2px solid #000000; } }
December 8, 2017 at 11:28 pm #445397scott doelThanks Leo
December 9, 2017 at 8:05 am #445648LeoStaffCustomer SupportNo problem!
November 17, 2018 at 8:25 am #729812scott doelSorry to use such an old post, but I was wondering if its possible to have the social-divider class not change colour on mouseover?
November 17, 2018 at 4:06 pm #729957LeoStaffCustomer SupportLike on hover? Looks like it’s staying white no?
November 17, 2018 at 11:40 pm #730058scott doelSorry Leo I only gave you half the info. I have been using the menu highlight in conjunction with the above CSS. All works great its just that when you hover over the item with the social divider then the line changes with the menu item.
Below is my CSS@media (min-width:769px) { .main-navigation .main-nav ul li.social-divider a { border-left: 2px solid; } } @media (min-width: 769px) { .main-navigation .menu > .menu-item > a::after { content: ""; position: absolute; right: 0; left: 50%; bottom: 5px; -webkit-transform: translateX(-50%); transform: translateX(-50%); display: block; width: 0; height: 2px; background-color: currentColor; transition: 0.3s width ease; } .main-navigation .menu > .menu-item.current-menu-item > a::after, .main-navigation .menu > .menu-item.current-menu-ancestor > a::after, .main-navigation .menu > .menu-item > a:hover::after { width: 50%; } }
November 17, 2018 at 11:50 pm #730062LeoStaffCustomer SupportWeird. This is not what you are seeing?
https://www.screencast.com/t/KGHT2f39xeCNovember 17, 2018 at 11:53 pm #730064scott doelSorry Leo no, but its my issue not a theme problem, marking this as resolved
November 18, 2018 at 12:13 am #730065LeoStaffCustomer SupportNo problem!
Let me know if you need another look 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.