« See all FAQs for Office Responsive Business Theme

How to add prettyPhoto lightbox to image links in blog posts?

You can add some js to your /js/jquery.init.js file that will add the prettyPhoto class to any link with an image on your blog posts using the following code:

//add pretty photo to blog images
$('.single .post a').has('img').addClass('prettyphoto-link');  

This will add lightbox to all of them though, even images that link to other pages which may not be good.

If you want to apply only to certain images you can add the “prettyphoto-link class to any link in your post editor via HTML mode.

by
by
by
by
by
by