Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1008944

    Hi,

    I’ve tried adding the facebook and linkedin icon to a footer widget, ive got the facebook icon working but the linkedin icon isnt showing up.

    I’ve pasted the code i’ve put in the private section, if you could help me fix up the code that would be great

    #1008960

    Hey tokenofhon,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1008978

    Sure, i’ve added it to private info

    #1009347

    Hi,

    Please add this code to your child theme

    
    
    add_filter( 'widget_text', 'do_shortcode' );
    
    

    It’s required because the text widget does not support/execute shortcodes by default – see https://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/

    Then add this code to the footer text widget

    
    [av_font_icon icon='ue8f3' font='entypo-fontello' style='' caption='' link='manually,https://www.facebook.com/precisionenergyptyltd/' linktarget='_blank' size='40px' position='left' color='' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    [av_font_icon icon='ue8fc' font='entypo-fontello' style='' caption='' link='manually,https://www.linkedin.com/company/precision-energy-pty-ltd/' linktarget='_blank' size='40px' position='left' color='' custom_class='' admin_preview_bg=''][/av_font_icon]
    
    

    If you want to change the icon size replace 40px with another value.

    Best regards,
    Peter

    #1009365

    Hey mate, sorry i hadnt set up a child theme, which .php do i add the first bit of code to, functions.php?

    #1009367

    Hi,
    Yes you can add it to the functions.php :)

    Best regards,
    Peter

    #1009379

    Sweet that works, am ia ble to make the style do the rollover effect that it had before? (blue box for facebook when hovering)

    #1009394

    Hi!

    Yes sure – use this code in the text widget:

    
    <ul class="noLightbox social_bookmarks">
    <li class="social_bookmarks_facebook av-social-link-facebook"> [av_font_icon icon='ue8f3' font='entypo-fontello' style='' caption='' link='manually,https://www.facebook.com/precisionenergyptyltd/' linktarget='_blank' size='40px' position='left' color='' custom_class='' admin_preview_bg=''][/av_font_icon] </li>
    <li class="social_bookmarks_linkedin av-social-link-linkedin"> [av_font_icon icon='ue8fc' font='entypo-fontello' style='' caption='' link='manually,https://www.linkedin.com/company/precision-energy-pty-ltd/' linktarget='_blank' size='40px' position='left' color='' custom_class='' admin_preview_bg=''][/av_font_icon] </li></ul>
    

    and add this code to your quick css field:

    
    #top .widget .social_bookmarks li {
    float: none;
    border-right: none;
    display: inline-block;
    }
    

    Cheers!
    Peter

    #1009475

    Beautiful!

    #1009567

    Hi tokenofhon,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.