Sorry for the delay in responding. It took some time to figure out what might work best for you.
Unfortunately, given your specific situation, I am not sure if there is an easy solution in your case. To cater to your specific ask, the only option is to define a rel
attribute for your photos (see here) – the downside is that you might not have an easy way to do so, and this may end up being very tedious.
An alternative for you to consider is to use the shortcode replacement functionality to automatically port over all your galleries to Photonic. This is an interesting process, wherein you use something that I had built when Gutenberg was thrust upon users (see scenario 4). This requires a bit of manual work – you have to add some attributes to each shortcode, but you can do this by hand. Basically the attribute that triggers Photonic for native galleries is the style
attribute. So:
- For all posts/pages with galleries, switch to the “Text” mode in the Visual Editor.
- You will see the raw shortcode there. You can add
style='square'
to the shortcode and save. If you are using a different layout, you can add style='random'
for justified grids, or style='masonry'
for Masonry and style='mosaic'
for Mosaic layouts.
- As per the below, if you are facing speed issues and if your layout is justified grid or masonry or mosaic, you can also add a
tile_size
parameter. So what you are adding becomes style='random' tile_size='medium'
.
- Once you have made the changes, you can save your post.
- This still will have no impact on the front-end. That is when you can go to Photonic → Prepare for Gutenberg and perform the shortcode replacement as per the table at the bottom. Note that a shortcode will only appear there if you have the
style
attribute in your shortcode. You could have, alternatively, edited the shortcode tag directly when you were adding the style
attribute, but if you are using the Gutenberg replacement feature, you can do it in one shot.
Also, WP Galleries in Photonic load really slow for some reason.
The only case where I envision this might happen is if you are using the Justified Grid, or Masonry or Mosaic layouts and you have set the tile size to be the same as the main image size.