Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #851222

    dean44
    Participant

    Whenever 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!

    #851225

    dean44
    Participant
    This reply has been marked as private.
    #851231

    dean44
    Participant

    You can see the place where the icon should show here: http://www.screencast.com/t/AliJfiq7Mp

    #851599

    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    Please replace the code for the social-icons that can be found here.

    https://community.theme.co/forums/topic/x_social_global-appearing-on-the-right-panel-of-screen/#post-813441

    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.

    #853546

    dean44
    Participant

    OK, great. I was able to figure it out with that help. It was the “data-x-icon” part that I was missing.

    #853708

    Darshana
    Moderator

    Glad you were able to figure it out 🙂