• I’d like to make a custom share button form for my current list that is not available with this plugin.

    Is it possible?

    Thanks,

    Don

    • This topic was modified 4 years, 2 months ago by Don Anastas.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you looking for a custom icon like the content below?
    https://www.addtoany.com/buttons/customize/wordpress/custom_icons

    Or are you looking to add a button?

    Thread Starter Don Anastas

    (@javaman1)

    I’m looking to add a button. I already look at the Settings > AddToAny > Advanced Options, and specify the URL of the directory containing your custom icons, filename extension, and width & height.

    Not quite sure where I would have that icon, what directory.

    I want to add a button of a popular social media site which doesn’t exist on this app. Others have posted similar questions with no response. I wrote directly to the developer at their site with no response. Other sites using this App have it so I presume they used the aforementioned method.

    I’ll keep trying.

    keniry

    (@keniry)

    I was looking to add a button came across this post the found how on github github

    …in my case I used Code Snippets

    function addtoany_add_share_services( $services ) {
    	$services['example_share_service'] = array(
    		'name'        => 'Example Share Service',
    		'icon_url'    => 'https://www.example.com/my-icon.svg',
    		'icon_width'  => 32,
    		'icon_height' => 32,
    		'href'        => 'https://www.example.com/share?url=A2A_LINKURL&title=A2A_LINKNAME',
    	);
    	return $services;
    }
    add_filter( 'A2A_SHARE_SAVE_services', 'addtoany_add_share_services', 10, 1 );

    As I used a link back to my own site I replaced share?
    url=A2A_LINKURL&title=A2A_LINKNAME with https://www.example.com/example which worked fine for the purpose I had.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Button’ is closed to new replies.