The Magnific Popup Plugin Does Not Stick to the Child Items?
For Example:
- Thread ID: 35
- <h1>Title</h1>
- <p>Caption</p>
- <div class='parent-container'>
- 1. <img src=""/>
- 2. <img src=""/>
- 3. <img src=""/>
- </div>
- Thread ID: 36
- <h1>Title</h1>
- <p>Caption</p>
- <div class='parent-container'>
- 1. <img src=""/>
- 2. <img src=""/>
- </div>
It shows "1 of 5", "2 of 5", etc.
I have used the following for Magnific Popup:
- $('.parent-container').magnificPopup({
delegate: 'a', // child items selector, by clicking on it popup will open
type: 'image',
gallery:{enabled:true}
// other options
});
Any suggestions, why this happens?
If you need something specifically, please let me know.