• Resolved ecronik

    (@ecronik)


    Hi,

    the featured image on the mobile theme / AMP of my site 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?

    E.g.: https://tinyurl.com/3wje5x2h

    Thanks,
    eC

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @ecronik

    Thank you for contacting us, it seems you are using the Newspaper theme with the tagDiv mobile plugin, the tagdiv mobile overwrites templates to server AMP pages from their code.

    So the feature images are currently being served from the Newspapers theme and other assistants plugins such as tagDiv Composer, tagDiv Cloud Library, and tagDiv Mobile Theme.

    It will be best to contact tagDiv support as they can assist you better regarding their templates.

    Also we noticed that your AMP pages are not valid this may be because of W3Total Cache plugin adding lazyload scripts on AMP page.

    This can be easily fixed by Activating the AMP extension from the W3Total Cache plugin.

    1) Login as Admin.
    2) Goto Dashboard->Performance->Extensions
    3) Activate AMP extension.

    (Screenshot)

    Once you activate the Extension, clear your site cache and recheck your AMP page on AMP validator to verify that status is success (your AMP page is valid)

    I hope this helps!

    Thread Starter ecronik

    (@ecronik)

    Hi Milind,

    thanks for your quick reply and also the deeper look into my website! Got the extension now finally working, as I had issues with it before (decreased page speed but this was due the img tag setting).

    One last question: When changing the URL structure from ?amp=1 to /amp/ it completely breaks the layout of the AMP pages (but unfortunately I can’t utilize caching with a query string). Do you have any idea what could be causing this and how to fix it? Or is caching via W3TC actually needed now?

    Thanks again and best regards,
    eC

    • This reply was modified 2 years, 5 months ago by ecronik.
    • This reply was modified 2 years, 5 months ago by ecronik.
    Plugin Support Milind More

    (@milindmore22)

    Hello @ecronik

    I am not sure why it will break the layout when using /amp/ but you can use ?amp=1 query parameter for caching as W3TC has the setting name as Cache URIs with query string variables that can be used to cache query string.

    goto Dashboard -> Performance- > Page Cache -> Enable “Cache URIs with query string variables”

    You can also contact w3tc support as they can guide you with setting better than us.

    I hope this helps!

    Thread Starter ecronik

    (@ecronik)

    Hi Milind,

    the problem with query string caching is, that I can’t use it due to my server configuration: That’s why I’ve asked for the change to the /amp/ structure. But as it breaks the layout, I can’t use that either. Do you maybe have any guidance on what I could try to find a possible fix for this?

    Thanks,
    eC

    Thread Starter ecronik

    (@ecronik)

    Hi Milind,

    I realized I can use it indeed, if I change back from Disk: Enhanced to Disk. Would you recommended that in terms of activating Caching for AMP pages? The Pagespeed is looking really good for them already.

    Thanks again,
    eC

    Plugin Support Milind More

    (@milindmore22)

    Hello @ecronik

    That’s great!! yes, Any kind of Page caching is recommended by AMP.

    Thread Starter ecronik

    (@ecronik)

    Hi Milind,

    one last question. I read this on the Bing AMP Cache website:

    As a website owner, you must also allow cross-origin resource sharing (CORS) for bing-amp.com domain as they have already authorized CORS sharing for the ampproject.org domain.

    Do I need to set something like Header set Access-Control-Allow-Origin "*" to comply with it and if so, do you see any security issues in doing it?

    Thanks again,
    eC

    Plugin Support Milind More

    (@milindmore22)

    Hello @ecronik

    Using the * should work but we can not comment on security issues, it’s better to check with someone expert in that field.

    Plugin Support Milind More

    (@milindmore22)

    @ecronik As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Disable Media URL for Featured Image?’ is closed to new replies.