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

    Hello, is it possibile with a function add a new instagram button on feature “share this article”, in the bottom of single article?
    can you help me, please?

    #1193215

    I have seen in article is it possible add custom layout of social sharing, but instagram buttom is missing! :-(
    this is the section where i should create a new button by function, is it possible?

    SHARE ARTICLE

    thanks

    #1193225

    Hi, i have created a function to embed instagram buttom, this is the code:

    // 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);
    }

    BUT my problem is pattern not work: “https://www.instagram.com://send?text=%5Btitle%5D-%5Bpermalink%5D” :-)
    What should I write to post my article to instagram?
    thanks

    • This reply was modified 4 years, 8 months ago by foscolino.
    #1193329

    No idea to solve my instagram problem? :-( I am sad

    #1194463

    Hi,

    Thanks for contacting us!

    Instagram currently does not allow sharing content from another website so it is not possible. If they make it possible one day, we will surely add an option in Enfold as well :)

    Best regards,
    Yigit

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