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?
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?
thanks
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
No idea to solve my instagram problem? :-( I am sad