• Resolved ccensored

    (@ccensored)


    Is it possible to change the icons that are used for the social links in the top bar? I had a quick browse but can’t seem to find where the images are being called from, or where to find them.

    Any help is most appreciated

Viewing 5 replies - 1 through 5 (of 5 total)
  • Tanay

    (@tanaykhandelwal-1)

    Hello ccensored,

    These icons are coming from the Font Awesome icon class (in header.php) like for facebook the code written is

    <span class="fa fa-facebook" title="Facebook"></span>

    you can simply change the class attribute to change the icon.

    Mark ticket as resolved if you’ll get the resolution. ??

    Regards,
    Tanay Khandelwal

    Thread Starter ccensored

    (@ccensored)

    Hi Tanay, appreciate your help.

    I’m looking to add an Instagram link to the top bar, I thought it would be easier to simply change one of the icons that are already there.

    But it’s not, for me anyway, could you help me out in how to go about adding a different icon to the top bar?

    Many thanks,
    c

    Tanay

    (@tanaykhandelwal-1)

    Hello there,

    It would be easier to change one of the link rather than adding a new option. For ex. to change the Foursquare link to Instagram

    <?php if(sketch_get_option($incart_lite_shortname.'_foursquare_link')){ ?><li class="foursquare-icon"><a target="_blank" href="<?php echo esc_url(sketch_get_option($incart_lite_shortname.'_foursquare_link','incart-lite')); ?>"><span class="fa fa-foursquare" title="Foursquare"></span></a></li><?php } ?>

    just change the icon class and title attributes of span tag (this change will only be reflected in the front end, not in the back end).

    <?php if(sketch_get_option($incart_lite_shortname.'_foursquare_link')){ ?><li class="foursquare-icon"><a target="_blank" href="<?php echo esc_url(sketch_get_option($incart_lite_shortname.'_foursquare_link','incart-lite')); ?>"><span class="fa fa-instagram" title="Instagram"></span></a></li><?php } ?>

    Regards,
    Tanay Khandelwal

    Thread Starter ccensored

    (@ccensored)

    Oh yes I see what you mean,

    I went and changed too many attributes.
    That worked perfectly, and yes, just front end is ok.

    Thank you for your help,
    c

    I followed the suggestions above and still can not add an Instagram link.

    Any help is most appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Social icons’ is closed to new replies.