Tagged: x
-
AuthorPosts
-
June 6, 2016 at 2:59 pm #1028596
DiamondAlexanderParticipantHello!
I’ve seen people use plugins for this or add code to their functions.php file but I didn’t want to edit that without checking in with you first.
What code do I need to add to my menu item in order to either a) show a Font Awesome icon in front of the link or b) display:none the link and just show the icon?
I want to display a home icon to represent the home link.
Thank you,
DiamondJune 6, 2016 at 3:01 pm #1028601
DiamondAlexanderParticipantThis reply has been marked as private.June 6, 2016 at 8:35 pm #1029082
JadeModeratorHi there,
Instead of adding a text for the navigation label, try adding this:
<i class="x-icon-home"></i>Hope this helps.
June 7, 2016 at 3:51 am #1029555
DiamondAlexanderParticipantHi Jade,
I did try that way and it didn’t work for me. It leaves a blank space that is linked but it doesn’t show an icon. It’s so weird because with widgets, I can add in icons but it’s tougher with the navigation menu.
Is there another way?
June 7, 2016 at 7:27 am #1029798
FriechModeratorHi There,
In that case you need the icon unicode to supply on the data-x-icon attribute. Look for desired icon unicode here.
The complete code should be like below; see your Our clients menu item.
<i class="x-icon x-icon-heart" data-x-icon="" ></i>Hope it helps, Cheers!
June 7, 2016 at 4:47 pm #1030729
DiamondAlexanderParticipantThat worked perfectly, thank you! Can I ask why it needed the unicode instead of a normal shortcode? I’m just curious 🙂
Thanks!
June 8, 2016 at 2:51 am #1031409 -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1028596 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
