Galleries Lightbox Instead of Attachment.php

Posted in: Newspaper
Post count: 42

Hi Guys,

Got an odd one. This was working fine before latest newspaper update.

We have galleries like the one here using the mosaic option. I’ve also tried with other gallery types and the same thing happens.

When clicking one of the images to enlarge, instead of opening attachment.php it attempts to open a lightbox and gets the error -The Image could not be loaded. This is an urgent one we need to fix please.

Example – http://www.heyuguys.com/six-new-revealing-stills-christopher-nolans-interstellar/ (click one of the 6 images at the bottom of the post).

Thanks.

Dave

  • This topic was modified 11 years by daveszt. Reason: forgot to add link
Post count: 388

I was doing this recently and got that error when I had it link to attachment page instead of media file, or vice versa – can’t remember. Switching to the other option fixed it.

Post count: 42

Yeah, i think that will sort it but we need people to go to the attachment.php

Post count: 388

Oh, gotcha. I thought you were hoping to get the lightbox working.

Not sure, will have to wait for tagDiv support…

Post count: 6600

Hi,

If you want the images to link to the attachment page then you will have to disable the light box, follow this topic you will find out how to do it: https://forum.tagdiv.com/topic/dont-want-light-box-for-images/#post-17108

Thanks

Post count: 42

Perfect, thx.

D

Post count: 42

Can i ask why it is that the lightbox is failing to load the images woth the error The image #x cannot be loaded?

Post count: 6600

Hi,

This happens when you set images/gallery to link to attachment page. You need to edit the gallery/image and set it to link to media file instead.
If you need them to link to the attachment page use this method to remove the light-box feature as it wont work with images linking to attachment page: https://forum.tagdiv.com/topic/dont-want-light-box-for-images/#post-17108

Thanks

Post count: 42

Roger that. It’s just annoying having to make all these changes to files manually everytime we update the newspaper theme.

Also just spotted if i change that code, the menu bar doesn’t seem to want to scroll down the site any longer and also the youtube embeds dont auto-resize to the width of the page.

Thanks.

D

  • This reply was modified 11 years by daveszt.
Post count: 42

It also seems to stop the ‘Load More’ buttons working on the homepage. http://www.heyuguys.com/

Post count: 6600

Hi,

Please make sure you remove only the part pointed in the screenshot, I have tested this and should not affect other features.
Please double check and if still doesn’t work please replace your site.js file content with this: http://pastebin.com/4NvAb6rF

Thanks

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.