Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1177794

    Hi
    I was using two functions to share on telegram in Social Share Buttons
    they worked also in 4.7.1, but after upgrading to 4.7.2 the Telegram button disappeared.

    Functions:
    // Register new icon as a theme icon
    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);
    function avia_add_custom_icon($icons) {
    $icons[‘telegram’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8b7’);
    return $icons;
    }

    //Add items on the social share section
    add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    $args[‘telegram’] = array(“encode”=>true, “encode_urls”=>false, “pattern” => “https://telegram.me/share/url?text=&url=%5Bpermalink%5D”, ‘label’ => __(“Share on Telegram”,’avia_framework’));
    return $args;
    }

    Can you help me to restore the Telegram button please?

    Thank you
    Manu

    • This topic was modified 4 years, 10 months ago by manurimini.
    #1178350

    Hi
    The problem in adding Telegram or other Social Share Button is in helper-social-media.php of Enfold 4.7.2
    I’ve loaded helper-social-media.php of Enfold 4.7.1 in Enfold 4.7.2 and the functions work fine.
    I don’t know what lines are causing the issue but it should be solved in the next release so that people can add the Social Share Buttons that are not included in Enfold.

    PS as many others I don’t like too much the new accordion style in ALB. it only wastes time by openig and closing all those windows. May be there should be an option for having them all opened.

    Best Regards
    Manu

    #1178687

    Hi,

    Thank you for using Enfold – and sorry for that.

    Will be fixed in next update.

    Meanwhile can you replace the content of includes/helper-social-media.php with

    https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_7_2/helper-social-media.php

    Do not forget to make a backup of the original file for a fallback.

    Best regards,
    Günter

    #1179347

    Thank You Günter it works
    Manu

    PS I think for YELP you should add the following CSS:
    #top #wrap_all .av-social-link-yelp:hover a {
    color: #fff;
    background-color: #d32323;
    }

    • This reply was modified 4 years, 9 months ago by manurimini.
    #1179431

    Hi,

    Glad it works now.

    Thanks for pointing out yelp icon. I agree to change the colors for it. Will be in next release.

    I will close this topic – feel free to open a new one if you need further assistance.

    Have a nice day and enjoy Enfold.

    Best regards,
    Günter

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Telegram in Social Share Buttons after upgrading to 4.7.2’ is closed to new replies.