Tagged: x
-
AuthorPosts
-
March 24, 2016 at 11:55 am #851222
dean44ParticipantWhenever I try to add icon code to my site, whether in the functions.php (as per https://community.theme.co/forums/topic/login-button-next-to-social-media-buttons/) or in the menu item title field (as per https://community.theme.co/forums/topic/adding-icon-in-top-menu/) nothing is output.
For example:
I’m trying to add a login icon to the top bar, where the social media icons would be. I’ve edited my child theme functions.php with the instructions (above) but when I add in anything, even when I copy something that’s there already, I don’t get an icon showing up.Why is that?
I’ve attached the code that I’m trying to use.
Thanks!
March 24, 2016 at 11:58 am #851225
dean44ParticipantThis reply has been marked as private.March 24, 2016 at 12:03 pm #851231
dean44ParticipantYou can see the place where the icon should show here: http://www.screencast.com/t/AliJfiq7Mp
March 24, 2016 at 4:32 pm #851599
NicoModeratorHi There,
Thanks for writing in.
Please replace the code for the social-icons that can be found here.
From
if ( $facebook ) : $output .= '<a href="' . $facebook . '" class="facebook" title="Facebook" target="_blank"><i class="x-social-facebook"></i></a>'; endif;To
if ( $facebook ) : $output .= '<a href="' . $facebook . '" class="facebook" title="Facebook" target="_blank"><i class="x-icon-facebook-square" data-x-icon="" aria-hidden="true"></i></a>'; endif;Hope it helps.
Thanks.
March 26, 2016 at 1:21 pm #853546
dean44ParticipantOK, great. I was able to figure it out with that help. It was the “data-x-icon” part that I was missing.
March 26, 2016 at 5:54 pm #853708
DarshanaModeratorGlad you were able to figure it out 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-851222 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
