I want to disable the lightbox (and the link) of the main image inside the portfolio pages.

I see that if I select in the media options “No Link” i get this correctly disable however is also disable the link to the image in the portfolio category where people can select what work they want to see… and this is not very usable…

So what I need is to have the link correctly to the post when I click on the image in the portfolio category but when I am inside the portfolio single page I dont want any link in the featured media.

How can I get this working?

#2 I have another problem. My images in the portfolio automatically when I upload them the system create a new image with the size 1138x640px but the natural size or my images is 1140×641. There is a way to say to the system that the size or my images is 1140x640px in order to don’t have this new image size of 1138×640?

Sounds like you never want to have a lightbox on the portfolio item page , but just on the thumbnail page if you select the lightbox option when making the page. If that’s the case then whenever you select lightbox option , that is how it will function only on portfolio item page.

a) Please open /includes/helper-slideshow.php and find line 335-339 ( i moved things around a bit so i might be off by a few lines, but there is only 1 block of code on that page that looks like that (on the page there will be indentations that i removed here:

So now when you add image on the page a new option for image properties will show up ‘No Link On Portfolio Item Only’ and if you select it , there will be no lightbox on the main image page and no link., but the main portfolio page with thumbnails will have as before.

**Just be aware that theme updates will overwrite the above solution.

===================

====================

=====================

2.

Thanks,

Nick

Author

Posts

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Disable lightbox inside portfolio pages’ is closed to new replies.