Tagged: x
-
AuthorPosts
-
May 18, 2016 at 2:57 am #996923
helloengParticipantHi.
How can I add icons in front of my menu item titles? See screenshot.
Thanks!
May 18, 2016 at 3:14 am #996943
LelyModeratorHi There,
Depending on the icon you want, you can add and update this:
<i class="x-icon x-icon-adjust" data-x-icon="" aria-hidden="true"></i>
Check this for options:theme.co/x/demo/integrity/1/shortcodes/icons/Hope this helps.
May 18, 2016 at 5:37 am #997110
helloengParticipantHi
1. What is this symbol?
2. Where exactly do I put this code?
May 18, 2016 at 6:05 am #997141
FriechModeratorHi There,
#1 That is actually the icon, but not on fontAwesome font-family format. Please follow this post: https://community.theme.co/forums/topic/navbar-icon/#post-990901
#2 Paste it before your menu text navigation label.
Hope it helps, Cheers!
May 19, 2016 at 4:14 am #999067
helloengParticipantSorry I think I was not clear.
I understand how to insert an icon INSTEAD of a page name.
BUT I want an icon AND a page name. See new screenshot. Can you explain how to achieve this?
Thanks
May 19, 2016 at 4:57 am #999126
Rue NelModeratorHello There,
Please edit your menu item and use something like this:
<i class="x-icon x-icon-home" data-x-icon="" aria-hidden="true"></i> Home
You can get the uniform HTML entity or data-x-icon value for the corresponding icon from here:
http://fontawesome.bootstrapcheatsheets.com/May 19, 2016 at 5:45 am #999176
helloengParticipantThat works. Thanks so much 😉
May 19, 2016 at 5:51 am #999179
helloengParticipantfollow up question
So, this code here:
<i class=”x-icon x-icon-home” data-x-icon=”” aria-hidden=”true”></i> Home
What would it change to if I wanted to use the font awesome icon “.fa-home”? icon AND Home (page name)?
Thanks
May 19, 2016 at 6:30 am #999213
Paul RModeratorHi,
You can replace fa with x-icon
eg.
fa-home to x-icon-home
<i class="x-icon x-icon-home" data-x-icon="" aria-hidden="true"></i> Home
You can use this cheat sheet as your guide.
http://fontawesome.io/cheatsheet/
Hope that helps.
May 19, 2016 at 7:09 am #999264
helloengParticipantOk, now I understand.
Next question:
How could I use icons from this page with X theme?
I can download their icons in .zip files. How can I integrate them with X theme?
May 19, 2016 at 8:07 am #999345
JoaoModeratorHi There,
You can use them just like you use any image.
So you need to upload them via wordpress or ftp and have the URL of it.
Than you can use:
<img src="http://yourwebsite.com/media/youricon.png" alt="Your Icon" height="42" width="42">If you use in the menu it is the same principle:
<img src="http://yourwebsite.com/media/youricon.png" alt="Your Icon" height="42" width="42"> Your Menu Text`Hope that helps,
Joao
May 20, 2016 at 1:13 am #1001011
helloengParticipantHi Joao, it worked. Thanks a lot. Issue resolved 😉
May 20, 2016 at 1:21 am #1001029
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-996923 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>

