Made in Europe, buy from Europe.

Black Friday

65% off Annual plans

25% off Lifetime · 10 per week

Ends December 2

Get the deal →

How to add social share buttons to a WordPress gallery

Updated 2 min read

Share buttons let visitors share an image from your WordPress gallery on X, Facebook, WhatsApp, LinkedIn, Pinterest or by Email. You turn them on per gallery, and they are free in Modula Lite.

Watch how to switch on share buttons for a gallery and set the email text.

Turn on share buttons for a gallery

If you don’t have a gallery yet, create your first gallery first.

  1. Go to Modula → Galleries and open your gallery.
  2. Click Interact in the left rail.
  3. Under Share, switch on Enable sharing.
  4. Switch on the networks you want. Your changes are saved as you make them.

    The Share settings under Interact, with Enable sharing on and X, Facebook and Pinterest switched on

Under the networks you can change how the buttons look:

  • Icon color: The color of the icons.
  • Icon size: From 8 to 64 pixels, with 16 by default.
  • Space around each icon: From 0 to 40 pixels, with 10 by default. More space makes the buttons easier to tap on a phone.
  • Collapse on desktop: On by default. Computers show one share button on each image, and a click on it opens the icons. When this is off, the icons appear when you hover over an image. On phones and tablets the icons are always behind a share button.

Note: With the Modula Download extension on, Interact also has an Enable download switch.

Set the email subject and message

The Email button opens the visitor’s email app with a subject and a message ready to send. You set them for each gallery. With Email switched on, click More settings under Interact, then Email:

  • Email subject: The subject line.
  • Email message: The text of the email. Use %%image_link%% and %%gallery_link%% where you want the links to the image and the gallery.
Email subject and Email message under Interact, More settings, Email

What gets shared

Each button shares a link to the page with your gallery, pointing to the image the visitor picked. Modula adds that image, its title and its caption to the link.

The post on Facebook, X or LinkedIn then shows the image itself. If the image has no title, the gallery’s title is used. Pinterest pins the image, with its title or caption as the description.

Sometimes someone shares the page’s own address instead of using the buttons. The preview then comes from your SEO plugin.

In Yoast SEO, for example, edit the page and open the Yoast SEO panel. Set the image, title and description under Social media appearance.

Was this page helpful?
0 0

Still stuck?

Can’t find the answer?

Write to us with what you tried and what you expected to happen, and we’ll help you sort it out.