WP: how when you click on the link(thumbnail) to open the enlarged image?

Hello!
Is the plugin Responsive Lightbox.
Don't open the thumbnails on the home.(go easy as the link to the article) what's the problem?
June 10th 19 at 16:58
1 answer
June 10th 19 at 17:00
Solution
Maybe instead of a plugin to add the script Magnific Popup?
dimsemenov.com/plugins/magnific-popup
And then add this script:
/* magnific popup */
jQuery(document).ready(function($) 
{
 $('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').each(function()
{
 if($(this).parents('.gallery').length == 0) 
{
$(this).magnificPopup
({
type:'image',
 closeOnContentClick: true,
});
}
});
 $('.gallery').each(function() 
{
$(this).magnificPopup
({
 delegate: 'a',
 type: 'image',
 gallery: {enabled: true}
});
});
});
Thank you, problem solved. - Julio_Schumm commented on June 10th 19 at 17:03

Find more questions by tags WordPress