Disable Modal Gallery to Force Use of Attachment Page

Posted in: Newspaper
Post count: 35

With Newspaper V4, I was able to delete some lines of javascript to force the template to use the “attachment.php” page instead of a modal pop-up. How do I do this with Newspaper V6?

I’ve tried removing the highlighted portion, but this doesn’t seem to work.

What am I doing wrong?

Post count: 7909

Hi,

You can disable lightbox for gallery from booster functions – http://screencast.com/t/yj5nb3ovx52A

Thanks!

Post count: 35

Hi Alin,

Do I just remove the highlighted portion? I noticed that the line “jQuery(document).ready(function() {” line was not highlighted. The reason I’m asking is because I just removed what you highlighted and I’m still getting the lightbox on my galleries.

Example: http://gossiponthis.com/2015/05/21/usher-bobby-v-others-clubbing-cirque-atlanta-photos/

Post count: 780

Hi,

I think the paragraph that has to be deleted is this one: http://screencast.com/t/THL0r5GJ . I’ve tested it and it works.

sorry about that

Post count: 35

Yeah, that’s the file I edited the first time, and it didn’t work for me. This time I edited the file directly from the server (instead of on my local machine first) and that still didn’t work.

I’m no longer getting a modal lightbox when I click on an image in an embedded gallery, but now when I click on the image, it goes to the JPG instead of the attachment page.

It’s like something in the theme is forcing our galleries to link to the media file instead of the attachment page. Do I need to remove the other lines of code from the booster functions file as well?

See here:

http://gossiponthis.com/2015/05/21/usher-bobby-v-others-clubbing-cirque-atlanta-photos/

ALSO, just so you know, ALL OF OUR GALLERIES are set to link the thumbs to the attachment page and NOT the media file.

Post count: 1291

Hi,

You have to comment the following line: – http://screencast.com/t/7Tz3x3mfh

Thank you!

Post count: 35

That did it, Emil, thanks!!!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.