Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1203250

    Hi Enfold team,
    I suggest to add a Telegram icon and function in Enfold > Social medias.

    Thank you

    #1204018

    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

    #1204025

    ok thank you! An idea maybe to include it in the new update… ;-)

    • This reply was modified 4 years, 7 months ago by mark.
    #1204065

    Hi ehquionest,

    Glad we could help :)

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

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