Tagged: x
-
AuthorPosts
-
May 27, 2016 at 1:33 pm #1013321
triplewhatParticipantHow would I go about adding badges to my mega menu
Website address is https://bigdogboutique.com. If you hover on categories in the menu you can see the mega menu. I want to add badges next to a few of the items in the list to grab attention. I have the newest version of X theme and Cornerstone installed.
Thanks in advance!
May 27, 2016 at 4:05 pm #1013505
JoaoModeratorHi There,
by badges you mean icons? If yes you can add the icons that ara available on this page:
theme.co/x/demo/integrity/1/shortcodes/icons/
Inspect the icons with your right side button and find the codes that look like this:
<i class="x-icon x-icon-anchor" data-x-icon="" aria-hidden="true"></i>and add beside your Menu Items LabelsEx:
<i class="x-icon x-icon-anchor" data-x-icon="" aria-hidden="true"></i> HomeIf you would like to add imges you need to add it like the following example:
<img src="url/smiley.gif"> HomeHope that helps,
Joao
May 28, 2016 at 1:59 pm #1014568
triplewhatParticipantNo I mean badges. See picture attached.
May 28, 2016 at 9:22 pm #1014854
RadModeratorHi there,
I’m not really sure if it’s the button as a whole or just the number counts. They aren’t badges, but what badge do you wish to add? I may able to understand it through that 🙂
Thanks!
May 29, 2016 at 9:53 am #1015277
triplewhatParticipantWell, I want to add a badge like that number that says “hot” or something to grab attention. There are a lot of categories and links in this mega menu and I want to grab attention to certain ones. See pictures. One is of the x mega menu I’m trying to style, and one is of a bootstrap menu I made. Its not X theme.
May 29, 2016 at 10:14 am #1015305
RupokMemberHi there,
Thanks for writing back. It’s bit custom development but I am poiting this for you, kindly follow the steps carefully :
#1. Let’s add a custom class to the menu item you want to show the badge – http://prntscr.com/b9tjrd
If you can’t see the class option for the menu, make sure to enable this from screen options – http://prntscr.com/b9tmls
#2. Then add the below CSS under Customzie > Custom > CSS :
.menu-item.hot > a::after { background: #f27faa; border-radius: 3px; color: #fff; content: "Hot"; font-size: 12px; line-height: 18px; padding: 0 5px; position: absolute; right: 8px; top: 9px; }So if you menu item have the class “hot” then it will show the badge. Let’s adjust the CSS if needed.
Hope this helps.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1013321 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
