• Resolved mathisnarnar

    (@mathisnarnar)


    hey srcset don’t work for my amp page [ redundant link removed ] but work on my none-amp page [ redundant link removed ].
    When i open my amp page and then my amp-img inside my amp caroussel on my mobil it’s show me my largest images instead of the smallest but when i open my non-amp page and then my amp-img inside my amp caroussel on my mobil it’s show me my smallest images.
    Can you help me ?
    i have put this code inside my page.

    [ SNIP! ]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mathisnarnar

    (@mathisnarnar)

    I have the same issue in another page.
    In this page i want to put srcset for my image, it’s work for none-amp page but not in amp page (it’s exactly the same issue with my amp caroussel), i think it’s the same problem with the amp caroussel.

    My HTML code is :

    [ SNIP! ]

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Please do not post large code or responses like that here, it doesn’t work after ~10 lines or so.

    That goes double for HTML code, it will rarely work here on this site.

    If you need share that data please use https://gist.github.com/ or https://pastebin.com/ instead and post the link to that paste.

    Plugin Support Milind More

    (@milindmore22)

    Hello @mathisnarnar

    Thank you for the support topic, as suggested by mods please use https://gist.github.com/ or https://pastebin.com/ also please share an AMP page URL so it will be easy for us to debug the issue.

    • This reply was modified 3 years, 3 months ago by Milind More.
    Thread Starter mathisnarnar

    (@mathisnarnar)

    you will find my code and also the url on this link https://github.com/MathisNarnar/wp.git

    Plugin Support Milind More

    (@milindmore22)

    Hello @mathisnarnar

    Thank for the links, I am not able to view your non-AMP Home page, possibly because of Cache

    From the code you provided I see that you have added the wrong attribute for amp-carousel it should be delay="1500" not dealy="1500"

    Also, I do notice there is some code getting printed out on the AMP endpoint of the carousel can you please check if you are missing something or having extra space or " somewhere (screenshot)

    If you want to create a carousel I will recommend using WordPress default Gallery Block a gallery shortcode with AMP attributes as per the below examples. (screenshot)

    eg:

    [gallery ids="767,768,769,770" amp-carousel="true" amp-lightbox="true"]

    Hope this helps!

    @mathisnarnar As we haven’t received a response, I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist. Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘srcset don’t work on amp caroussel’ is closed to new replies.