An Instagram Feed Pro lightbox that jumps to the raw image is a known conflict with WP Slimstat. How to fix it.
Would you like to stop the Instagram Feed Pro pop-up lightbox from sending visitors to the raw image file?
In this guide, we’ll add two values to WP Slimstat’s settings so a click on a photo opens the lightbox again.
Before you get started, make sure Instagram Feed Pro is installed and activated on your WordPress site.
Requirements: The pop-up lightbox is part of Instagram Feed Pro.
Why Does the Lightbox Open the Image File?
Each post in your feed has a link with the class sbi_link_area. That link points to the full-size image file. When a visitor clicks a photo, the lightbox script stops the link from loading and opens the lightbox instead.
The lightbox may flash open and then send the visitor to the image file. If so, the problem may be related to a known issue with the WP Slimstat plugin. The steps below tell WP Slimstat to leave these links alone.
To check that the lightbox is on for your feed, see Setting Up the Instagram Feed Lightbox.
Fixing It in WP Slimstat
You’ll enter two values in WP Slimstat. Here is the first one.
cdninstagram.com
Here is the second one, which you only need if the first one doesn’t fix the issue.
sbi_lb-image,sbi_link_area
- Go to the SlimStat Settings page.
- Click the Filters tab at the top.
- Scroll down to the Internal and Outbound Links section.
- In the No Callback on URL field, enter the first value. This prevents the plugin from hijacking the image links in Instagram Feed Pro.
- If this doesn’t fix the issue, enter the second value in the No callback on classes field above it. Then enter the same value in the Do not Track Classes field below it.
That’s it! Clicking a photo in your feed should now open the pop-up lightbox.
Next, see how to disable the lightbox but keep the hover effect if you would rather send visitors straight to Instagram.
Frequently Asked Questions
Below, we’ve answered some of the most common questions about this fix.
What are sbi_link_area and sbi_lb-image?
The sbi_link_area class is on the link that covers each post in your feed. On a photo, a click on it opens the lightbox. The sbi_lb-image class is on the large image shown inside the open lightbox.
Does the free plugin include the pop-up lightbox?
No, the free plugin has no lightbox. The pop-up lightbox is part of Instagram Feed Pro.