Support » Plugin: AddToAny Share Buttons » Follow button for Soundcloud

  • Resolved praedicare

    (@praedicare)



    I want to add to my follow widget also the possibility to follow my soundcloud profile. How can I do this with this plug in?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    Add the following PHP code using a “functionality” plugin such as the Code Snippets plugin:

    function addtoany_add_follow_services( $services ) {
        $services['my_soundcloud'] = array(
            'name'        => 'My SoundCloud',
            'icon_url'    => 'https://www.example.com/soundcloud.svg',
            'icon_width'  => 32,
            'icon_height' => 32,
            'href'        => 'https://soundcloud.com/${id}',
        );
        return $services;
    }
    add_filter( 'A2A_FOLLOW_services', 'addtoany_add_follow_services', 10, 1 );

    Replace https://www.example.com/soundcloud.svg with the location of your square SoundCloud icon (an SVG icon is best).

    Then SoundCloud will be available in your AddToAny Follow widget.

    Thank you so much for the quick help! It worked! Now I also have a soundcloud follow button! Great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Follow button for Soundcloud’ is closed to new replies.