Hi There,
I am looking to add foobox functionality to images attached to a portfolio post. I have tried several things to try to get it to work with no avail. Here is a list of things I have tried:
1. Prevented the built-in lightbox (view.js) from loading
2. Added specific class names to the foobox settings to try to help foobox find the “.portfolio-item-content figure img” element directly
3. Had foobox remove or try to unregister the view.js lightbox etc.
4. Tested functionality on a simple image added to a wp page via “Add Media” and foobox works there.
It appears that the image must have an A href around the image tag for it to work. Is there an easier way to add a A href around the img tags of portfolio posts than having to hard code the JS to place it around the img tags?
Thanks in advance for any assistance. My site only lives locally at this point.
Jay