Disable Featured Image Lightbox / Modal on Mobile Theme / AMP

Posted in: Newspaper
Post count: 36

Hey,

I’m using the mobile theme + official AMP plugin on my site. On Desktop, I’ve disabled modal and lightbox for the featured image of posts, so it isn’t clickable anymore and it works. But unfortunately, the featured image still opens on the mobile theme / AMP version of the site. How can I prevent that?

Thanks,
eC

Post count: 27744

Hello @eC,

Our theme doesn’t have control over lightbox for AMP.

Thank you!

Post count: 36

Hi Anamaria,

I didn’t phrase my issue correctly: What I’m trying is to disable the featured image media URL in the mobile theme. Is this something that can be changed on my side, or do I need to contact the AMP dev’s about it?

Thanks,
eC

Post count: 27744

Hello,

Please check this topic to disable the option https://wordpress.org/support/topic/how-to-disable-amp-lightbox-for-post-images/

Thank you!

Post count: 36

Hello,

once again – I phrased my problem incorrectly. The featured image on the mobile theme / AMP is clickable, so has a media URL set. In the desktop version, I have it disabled everywhere, and it works as it should. But on the mobile theme, it still opens in a new tab. How can I prevent this?

Thanks,
eC

Post count: 36

P.S.: I’ve already contacted the AMP dev’s about this issue, and they said it needs to be fixed via my theme.

Post count: 27744

Hello,

Our theme lightbox has a transparent background, not like that one from WordPress or AMP.

Thank you for your understanding!

Post count: 36

Hello Anamaria,

you still seem to not understand what my issue is. Please have a look here: https://tinyurl.com/2zfrcjbk

When you click the featured image, it DOES NOT open a lightbox, but it opens the media URL. I don’t want it to be clickable/tappable – so when the user is clicking or tapping the image, I want nothing to happen.

How can I achieve that on the mobile theme? On the desktop version it works as expected, I have the lightbox / modal etc. deactivated and you can’t click it. But you still can on mobile.

I’m sorry that I opened this thread with a wrong explanation of my issue and I know you’re just trying to help, but it’s a little frustrating that I have to tell the same story now for the third time already.

Thanks,
eC

Post count: 27744

Hello eC,

Unfortunately, the featured image is not an option; you can use this custom code css
.td-post-featured-image a{
pointer-events: none;
cursor: default;
}

Set the code in Theme Panel -> Mobile Theme -> Custom Code -> Custom CSS.

Thank you!

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