Hi Enfold team,
I suggest to add a Telegram icon and function in Enfold > Social medias.
Thank you
Hey ehquionest,
Thank you for the inquiry.
You can use this snippet to add a new item in the social share section.
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['instagram'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue909');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
//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) {
$new_array = array(
'instagram' => array(
"encode"=>true, "encode_urls"=>false, "pattern" => "https://www.instagram.com://send?text=[title]-[permalink]"
)
);
return array_merge($new_array, $args);
}
This one adds an instagram icon, but you replace the value in the array with your own.
Best regards,
Ismael
ok thank you! An idea maybe to include it in the new update… ;-)
Hi ehquionest,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria