Sharing buttons display rules and how to use them.
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:
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.
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.
Here is a table with all available display rules at this moment. This table is constantly updated.
Condition name | Suboptions | Operators | Compare 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 ... |
Post | Post types | equal 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 taxonomy | Taxonomies list | equal 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 archives | Taxonomies list | equal to not equal to | Taxonomy term |
Page custom fields | Custom fields list | equal 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 |