Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1378239
    Spammedout
    Participant

    Hi, I’d like to my social icons on the Nav Bar and control their position. I followed this thread https://community.theme.co/forums/topic/navigation-bar-and-social-icons/ and created the file _navbar.php in x-child-renew/framework/views/global/ but I still don’t see the social icons in the Nav Bar. Please advise. Thanks

    #1378271
    Spammedout
    Participant

    My theme is Integrity so I created the .php file in the Integrity file of course.

    #1378323
    Rupok
    Member

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1378345
    Spammedout
    Participant
    This reply has been marked as private.
    #1378419
    Rupok
    Member

    Hi there,

    You should follow the thread and use the code as is since it should go under global folder.

    Thanks!

    #1378488
    Spammedout
    Participant

    Hi, can you spell that out a little more clearly please? What exact folder? So far it doesn’t work. I’ve given you access to the backend of my site. Thanks

    #1378523
    Joao
    Moderator

    Hi There,

    Would you mind to provide a mockup of how you imagine your social icons on your navbar?

    I dont think so template changes are necessary.

    You could simply create on your Menu some Custom Links on Appereance > Menus and add the icons as the labels of your custom links.

    For example, for facebook, add as a label : <i class="x-icon x-icon-facebook-square" data-x-icon="" aria-hidden="true"></i>

    and link to your facebook page.

    Let us know your thoughts.

    Thanks

    Joao

    #1378567
    Spammedout
    Participant

    Hi Joao, that’s fine thanks! How do I change the size and color of the icon that appears on the menu?

    #1378626
    Joao
    Moderator

    Hi There,

    Please add the following code to Appereance Customizer Custom CSS

    .x-navbar .desktop .x-nav>li i.x-icon-facebook-square {
        font-size: 25px;
        color: blue;
       margin-top: -4px;
      
    }
    .x-navbar .desktop .x-nav>li i.x-icon-facebook-square:hover {
     
        color: red;
    }

    Let us know if you need further assistance.

    Joao

    #1378839
    Spammedout
    Participant

    Hi Joao, when I change “facebook-square” to “twitter-square” I get another facebook icon. I need twitter, utube, instagram and snapchat links. Thanks

    #1379221
    Friech
    Moderator

    Hi There,

    Here are some social media icon codes.

    facebook
    <i class="x-icon x-icon-facebook-square" data-x-icon="&#xf082;" ></i>

    instagram
    <i class="x-icon x-icon-instagram" data-x-icon="&#xf16d;" ></i>

    youtube
    <i class="x-icon x-icon-youtube-square" data-x-icon="&#xf166;" ></i>

    twitter
    <i class="x-icon x-icon-twitter-square" data-x-icon="&#xf081;" ></i>

    pinterest
    <i class="x-icon x-icon-pinterest-square" data-x-icon="&#xf0d3;" ></i>

    snapchat
    <i class="x-icon x-icon-snapchat-square" data-x-icon="&#xf2ad;" ></i>

    Then update the CSS code Joao’s provided above to this:

    .x-navbar .desktop .x-nav>li i.x-icon {
        font-size: 25px;
        color: blue;
       margin-top: -4px;
      
    }
    .x-navbar .desktop .x-nav>li i.x-icon:hover {
    
        color: red;
    }

    Hope it helps, Cheers!

    #1381929
    Spammedout
    Participant

    Hi Friech, Many thanks, worked perfectly! You guys are the ultimate!

    #1382283
    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1378239 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>