If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Much of the time I only have one image and it seems pointless to have the lightbox for my site. How can I disable this function in the theme?
Open up the header.php file located in your main theme folder. Search for
wp_enqueue_script( 'avia-prettyPhoto' );
and replace it with
/* wp_enqueue_script( 'avia-prettyPhoto' );*/
If your images still have links, they will open up in a new window by themselves so make sure to select “None” for the Link URL when inserting an image.
The topic ‘How do I disable the Lightbox in Portfolio Items’ is closed to new replies.