Yo no encontré el botón y lo tuve que añadir como un widget
Thread Starter
Frank
(@phasar40)
I get an error in Code Snippet
The snippet has been deactivated due to an error on line 2:
Cannot redeclare function addtoany_add_follow_services.
Which is weird considering it’s pretty much the same code as for the Viber button.
I even took the viber code, edited it with the telegram info, and when I tried to activate it I get that error
-
This reply was modified 4 years, 9 months ago by
Frank.
Ah right, you have a custom Viber follow button too. The full code to use with your multiple custom follow services:
function addtoany_add_follow_services( $services ) {
$services['telegram'] = array(
'name' => 'Telegram',
'href' => 'https://t.me/${id}',
'icon' => 'telegram',
'color' => '2CA5E0',
);
$services['viber'] = array(
'name' => 'Viber',
'icon' => 'viber',
'color' => '7C529E',
'href' => 'https://chats.viber.com/${id}',
);
return $services;
}
add_filter( 'A2A_FOLLOW_services', 'addtoany_add_follow_services', 10, 1 );
Thread Starter
Frank
(@phasar40)
AHA! I get it. So the codes were the same (not including the variables) and that’s why it wasn’t working
Thanks