Comments (4)
Hey.
How this is related to our plugin? If 3rd-party lightboxes don't support AJAX loaded content, this is no our plugin problem.
from visual-portfolio.
If you've confirmed that it's a 3rd party issue, then fine. However, I've tried using 3 very popular WP lightbox plugins (Simple Lightbox, Responsive Lightbox & Gallery, WP Featherlight), none of which work. I'd assume that the top lightboxes would support AJAX loading.
WP Featherlight specifically mentions supporting AJAX content "by adding data attributes to your content". I've confirmed that only the first loaded images get the correct data-featherlight="image" attribute, while the paginated images do not. Now, I'm too much of a rookie to be able to say who's to blame here, if it's the lightbox plugin that fails to add attributes, or if it's Visual Portfolio that forgets to notify Wordpress or whatever that new content has been added. I'm sure you know best.
A suggestion would be to maybe allow the user to add custom attributes? Like how you allows the user to add a "Rel" attribute?
from visual-portfolio.
@Kartug01 some of these plugins support manual initialization methods, that you can use after AJAX loaded by our plugin. I don't see any reason why we should make an integration with plugins, that our plugin does not need. Since we have built-in lightbox features, these plugins are redundant.
If you still want to use these plugins, you will need to manually add scripts. Our jQuery event endLoadingNewItems.vpf
may help with it https://visualportfolio.co/documentation/developers/jquery-events/
from visual-portfolio.
Thanks for pointing me in the right direction. You were absolutely right, I was able to trigger the lightbox by entering a custom jQuery event in the lightbox plugin. My bad!
from visual-portfolio.
Related Issues (20)
- Sticky posts breaks paged layout item count
- Border radius not visible on MacOS & iOS
- "Saved Layouts" submenu link renders invalid URL HOT 1
- Woocommerce Integration
- Since WP version 5.8.0 allowed_block_types is deprecated
- Enhance Paged Pagination
- Gallery Block Refactor, possible conflict HOT 2
- dynamic set of images as content source based on .....
- Thumbnail Sharpness HOT 5
- Problem HOT 1
- jQuery Event: init.vpf not working and no resizing on Window resize HOT 3
- Carousel click events are sporadic when using an Apple Magic Mouse 2 (A1657) HOT 1
- All video popup play at the same time HOT 1
- Slow filtering HOT 1
- Error when editing layouts, gallery blocks not showing HOT 3
- Alt Text and Title and Filename and Field Usage for Display Title Text and Sort Functionality
- saved layouts blank page HOT 2
- Preview layout issues in block theme editor in Firefox browser HOT 5
- "Move Overlay Under Image" option missing in the settings HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visual-portfolio.