-
AuthorPosts
-
July 22, 2016 at 7:48 pm #664048
How do i achieve this with enfold?
July 22, 2016 at 7:53 pm #664050Hi kilimats!
Please go to Appearance > Menus and click “Screen options” on the top right corner and check CSS classes and then edit your menu item and give it a custom CSS class and then add following code to Quick CSS in Enfold theme options under General Styling tab
.your-custom-class > a > span.avia-menu-text:after { content: "4"; font-size: 9px; color: #FFF; background: #42A0BD; line-height: 17px; width: 17px; display: inline-block; text-align: center; border-radius: 100px; position: relative; top: -9px; left: 2px; }
Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.
Cheers!
YigitJuly 23, 2016 at 4:04 am #664108Nice almost perfect, how do i move the under line centered like before on the text?
July 24, 2016 at 6:11 am #664281the offset appears to be caused by the whitespace between menu, how do i remove the added space?
July 24, 2016 at 6:23 am #664283other issue is with the footer menu, same alignement issue
July 25, 2016 at 10:44 pm #664890July 25, 2016 at 10:50 pm #664893here thx
July 25, 2016 at 10:56 pm #664898Hey!
Please change your code to following one
.live > a > span.avia-menu-text:after { content: "Live"; font-size: 12px; color: #FFF; background: #77c84c; line-height: 20px; width: 36px; display: inline-block; text-align: center; border-radius: 0px; position: relative; top: -18px; margin-left: -50px; } #socket .live > a > span.avia-menu-text:after { margin-top: -10px; } #socket .sub_menu_socket div { overflow: visible; }
Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.
Cheers!
YigitJuly 26, 2016 at 10:05 pm #665507That worked beautifully ! one last question, can i add a mouse hover background/text color too ?
July 27, 2016 at 12:33 pm #665686Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
.live > a:hover > span.avia-menu-text:before { color: white; background: red; }
Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.
Best regards,
YigitJuly 27, 2016 at 5:59 pm #665849flawless ! you rock !
July 27, 2016 at 6:13 pm #665856 -
AuthorPosts
- The topic ‘Add text bubble above menu link’ is closed to new replies.