[ad_1]
Hi,
Check out AddToAny’s WordPress documentation for image sharing.
Your Additional JavaScript code would be something like this:
a2a_config.overlays.push({
// Show share buttons on visible images instead of only on hover over images.
showOn: 'visible',
// Show image share buttons only on <img> elements within <figure class="shareable-image"> elements.
target: '.shareable-image img',
// Share the image itself instead of the page URL.
useImage: true,
});Just add the share-image class name to images inserted with the WordPress block editor: Select the image block > Advanced > Additional CSS class(s).
