GET FREE VERSION GET THE PRO VERSION

Buttons Display Rules

Sharing buttons display rules and how to use them.

In this article

Overview

Sharing buttons display rules

Sharing buttons display rules

Share This Image plugin has advanced buttons display rules option. With the help of this option it is possible to choose what images on what pages must be available for sharing.

Buttons display rules can be created based on following common criteria:

  • Image conditions - Display conditions based on image specific options. You can choose specific images, image URL ( or part of it ), image format.
  • Post conditions - Conditions that are based on single posts. Choose what single posts or posts types images must be available for sharing.
  • Page conditions - Share images only on specific pages that match needed criteria.
  • User conditions - Share images only for certain users based on their role, device, language, etc.

The most exciting thing with the buttons display rules is that you can combine them to AND and OR groups. So you can create very complex rules that can contain many different conditions unique for each group.

Examples of use:

- Share all images only on Front page

- Share image on blog pages only

- Share only specific images ( need to specify these images )

- Share only images that contains specific text inside URL

- Enable image sharing only for specific user roles

- Disable from sharing specific images

- Disable from sharing images from specific pages

and many more available rules.

How to set display rules

It is very easy to set your own buttons display rules. Just follow these steps:

1. Open plugin settings page -> General tab.

2. Find Display rules option. By default it is set to share all your images on all available pages.

3. Create any new display rule or edit the existing one. Use AND and OR groups to create more complex rules.

4. When all rules are set just click Save Changes button at the bottom of the page.

5. Done. Now sharing buttons for your images must be displayed based on your new rules.

 

All available buttons display rules

All available buttons display rules

Available rules list

Here is a table with all available display rules at this moment. This table is constantly updated.

Condition nameSuboptionsOperatorsCompare values
Selector-equal to
not equal to
string
Image-equal to
not equal to
Images list
Image URL-equal to
not equal to
contains
not contains
string
Image format-equal to
not equal to
PNG
JPG
GIF
...
PostPost typesequal to
not equal to
List of posts
Post type-equal to
not equal to
List of post types
Post status-equal to
not equal to
List of post statuses
Post taxonomyTaxonomies listequal to
not equal to
Taxonomy term
Page-equal to
not equal to
Pages list
Page ID-equal to
not equal to
number
Page URL-equal to
not equal to
contains
not contains
string
Page template-equal to
not equal to
List of templates
Page type-equal to
not equal to
Page types list
Page archivesTaxonomies listequal to
not equal to
Taxonomy term
Page custom fieldsCustom fields listequal to
not equal to
Field name
User-equal to
not equal to
Users list
User role-equal to
not equal to
User roles list
User language-equal to
not equal to
Languages list
User device-equal to
not equal to
Desktop
Mobile