Tagged: x
-
AuthorPosts
-
August 7, 2016 at 3:06 am #1120707
piexecParticipantI need some help on the CSS for the Top Bar Menu.
1. How do I get the “hover” effect off the pipe line I have between the links?
2. How do I add Icons to the menu that are #fff in color? <i class=”x-icon x-icon-user”></i>
3. How do I also prevent the Icon from getting underlined on hover?Thanks in advance! This support is hands down what keeps me purchasing your theme.
August 7, 2016 at 3:07 am #1120708
piexecParticipantThis reply has been marked as private.August 7, 2016 at 8:34 am #1120879
ChristianModeratorHey there,
1. Please add the code below in your Appearance > Customize > Custom > CSS
.x-navbar .desktop .x-nav > li > a:hover:after { color: orange; }2. Sorry but I’m not sure what you’re trying to achieve. Please give us more details.
3. You’ll need to wrap the text with a span with a custom class like
<span class="underline">Home</span>. Then add the code below in your Appearance > Customize > Custom > CSS/* Remove menu item underline */ .x-navbar .desktop .x-nav > li.current-menu-item > a > span { box-shadow: none !important; } /* Add underline to menu item text only*/ .x-navbar .desktop .x-nav > li.current-menu-item > a > span .underline { box-shadow: 0 2px 0 0 #de964a !important; padding-bottom: 5px; }Hope that helps. 🙂
August 7, 2016 at 3:10 pm #1121162
piexecParticipantI added that code and it didnt quite work. Could you login to my admin and take a look and see what I’m doing wrong please. Remember, this is for the TOP BAR navigation.
August 7, 2016 at 6:10 pm #1121262
piexecParticipantSee attached “Contact Us” link as an example. I need #fff icon to the left of each menu item, and I need it to NOT get underlined on hover.
Hope this helps
August 7, 2016 at 7:29 pm #1121309
LelyModeratorHi There,
1.) Please update this CSS:
.top-menu li :after { content: "|"; color: #fff; margin-left: 15px; margin-right: 5px; }To this:
.top-menu li >a:after { content: "|"; color: #fff; margin-left: 15px; margin-right: 5px; text-decoration: none; display: inline-block; }2.)
Add icon shortcode like this:
[x_icon type="user"]On your child theme’s functions.php file, also add this line:
add_filter('theme_mod_x_topbar_content', 'do_shortcode');3.)
Also add this CSS:.top-menu li a i { color: #fff !important; } .top-menu li a:hover i { text-decoration: none !important; }Hope this helps.
August 7, 2016 at 7:55 pm #1121412
piexecParticipantGot everything but where do I add the shortcode? [x_icon type=”user”]???
August 7, 2016 at 8:12 pm #1121428
John EzraMemberHi there,
Thanks for updating the thread! You add the shortcode where you want your element to appear. Usually this is done within a text/html widget. Hope this helps – thanks!
August 8, 2016 at 5:40 pm #1122826
piexecParticipantI added it here, but all I get is the shortcode showing up in the page.
August 8, 2016 at 5:40 pm #1122828
piexecParticipantI added it here.
August 9, 2016 at 1:15 am #1123263
LelyModeratorThis reply has been marked as private.August 9, 2016 at 10:57 am #1123923
piexecParticipantThat worked. But I want to add more.
I’m assuming the “/f007” defines the icons, becuase I want to add others. Where do I get the list of what numbers correlate to what icons?
I don’t see it here.
August 9, 2016 at 11:34 am #1123988
RupokMemberHi there,
You will find them here – http://fontawesome.io/icons/
Just open any icon and you will find the UNICODE – http://prntscr.com/c3leoz
Remember to place backslash as the suggestion above.
Cheers!
August 9, 2016 at 11:40 am #1124001
ThaiModeratorHi There,
You can find the Unicode of icons on this page: http://fontawesome.io/icons/.
For example http://fontawesome.io/icon/cloud/
http://i.imgur.com/f8DiVsX.png
Hope it helps 🙂
August 9, 2016 at 6:46 pm #1124621
piexecParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1120707 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
