Learn about image sharing integration for the GeneratePress theme.
GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. It is a very popular theme and its paid version additionally includes theme block editor and pre-build layouts.
The Share This Image plugin has full compatibility with GeneratePress theme. Once activated, the plugin will display its sharing buttons for all images across theme. Of course it is possible to control visibility of buttons by using Display Rules option.
Below we will break down the main points of integrating the sharing plugin with the theme.
It is very easy to start displaying sharing buttons for theme images - just install and activate it. By default sharing buttons will appear for all images of your site.
Here is a more detailed guide of how to start image sharing:
1. Install and activate Share This Image plugin. More details can be found here.
2. Open plugin settings page. Take a look on Display Rules option - with its help you can choose for what images and on what pages to display sharing buttons. Set your own display rules or leave it as is to display sharing buttons for all your images. More details about this option can be found here.
3. Additionally change any other plugin options like styles, buttons, etc. It is up to you.
4. Now just open any of your theme pages that contain images. Sharing buttons must appear for each of them.
GenerateBlocks plugin was created by the same team as the GeneratePress theme. This plugin contains small collections of useful blocks.
Block to display custom images. Include a large number of different options.
Sharing buttons will appear for this block by default. If you want to disable them - use Display Rules option with Selector rule value of .gb-block-image img
.
Block to display custom queries with specific content. You can use it to display posts/page/any other custom posts type with their title, description, image, etc.
Sharing buttons will appear for all images inside this block. To control visibility of sharing buttons for such blocks use Display Rules option with Selector rule and value .gb-query-loop-wrapper img
.