-
AuthorPosts
-
January 23, 2020 at 6:38 pm #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.
January 25, 2020 at 1:19 pm #1178350Hi
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
ManuJanuary 27, 2020 at 1:36 pm #1178687Hi,
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
Do not forget to make a backup of the original file for a fallback.
Best regards,
GünterJanuary 29, 2020 at 10:26 am #1179347Thank You Günter it works
ManuPS 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.
January 29, 2020 at 2:44 pm #1179431 -
AuthorPosts
- The topic ‘Telegram in Social Share Buttons after upgrading to 4.7.2’ is closed to new replies.