Adding social icons only to couple of specific images

[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).

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer