-
Search Results
-
Looking to add a TikTok icon button using the “Social Buttons” module but it is not allowing us to add this.
Below is the code we are trying:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘tiktok’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘e800’);
return $icons;
}
add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);// Add new icon as an option for social icons
function avia_add_custom_social_icon($icons) {
$icons[‘TikTok’] = ‘tik-tok’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
function avia_add_social_share_link_arguments($args){
$tiktok = array(‘tiktok’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => https://www.tiktok.com/, ‘label’ => __(“Share on TikTok”,’avia_framework’)));
$args = array_merge($tiktok, $args);
return $args;
}Hi there,
I want to change the links on the social media share icons.
For example the link to Facebook – after clicking the Facebook icon, I want to open a popup and let people know that they are leaving my page.Ygit made a suggestion in answer #783467 that doesn’t work on my website.
I put this code on the functions.php:add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
function avia_add_social_share_link_arguments($args)
{
$args[‘facebook’][‘pattern’] = “http://kriesi.at”;
$args[‘twitter’][‘pattern’] = “http://kriesi.at”;
$args[‘gplus’][‘pattern’] = “http://kriesi.at”;
$args[‘pinterest’][‘pattern’] = “http://kriesi.at”;
return $args;
}Do I have to pay attention to anything else?
Do you can help me?Best regards
GrobiHi;
the newly in 4.8.3 introduced feature “ALB Social Share Buttons extended” seems to break custom changes via the avia_social_share_link_arguments filter.
Before the update, this code would add a xing share button to blog pages:
function avia_add_social_share_link_arguments($args) { $args['xing'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://www.xing.com/social_plugins/share/new?h=1&url=[permalink]&t=[title]"); return $args; }I´ve already tried another approach, but it isn´t working either:
add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1); function avia_add_social_share_link_arguments($args) { $xing = array('xing' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://www.xing-share.com/app/user?op=share;sc_p=xing-share;url=[title]&url=[permalink]", 'label' => __("Teile auf Xing",'avia_framework'))); $args = array_merge($xing, $args); return $args; }Additinally my code, which added the social share links to every single page, does no longer work:
add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1); function avia_add_social_toolbar_template_builder($content = "") { if (is_single()) { $content .= avia_social_share_links(array(), false, '', false); $content .= ''; } return $content; }Is there a fix or workaround for this?
Regards
Ansgari put this code in function.php but it doesn’t work.
it does not show the possibility of inserting telegram in the admin – enfold sectionother solutions to insert the social telegram icon?
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘telegram’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8b7’);
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(
‘telegram’ => array(
“encode”=>true, “encode_urls”=>false, “pattern” => “https://t.me://send?text=[title]-[permalink]”
)
);return array_merge($new_array, $args);
}Hello, I want to use this shortcode [ht-ctc-share] when i click to whatsapp image on function “share this article”, but buttom not work :-(
This is my code:
add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1); function avia_add_social_share_link_arguments { $new_array = ( 'whatsapp' => array( echo do_shortcode('[ht-ctc-share]') ) ); return array_merge($new_array); }











