Viewing 5 replies - 1 through 5 (of 5 total)
  • Yo no encontré el botón y lo tuve que a?adir como un widget

    Plugin Author micropat

    (@micropat)

    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 3 years, 2 months ago by Frank.
    Plugin Author micropat

    (@micropat)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Telegram Link’ is closed to new replies.