Category "amp-html"

How to calculate window width based on getBoundingClientRectAsync values of another element?

Is it possible to calculate viewport or window width based on getBoundingClientRectAsync values of element which is in virtual DOM? Running JS in web worker (am

Add class to amp-carousel-button

I have a carousel created with the amp-carousel component, the amp-carousel-button elements are created as part of the component. Is there a way to add some cla

Implement Google Analytics 4 in AMP

I know that GA 4 is still not supported and the development under ID #24621 goes not further. They say GA4 should do the AMP part. Universal Analytics will stop

How to do 1 URL re-write rule for multiple ids?

I have these URLs: https://www.example.com/amp/articles/10/title https://www.example.com/amp/videos/11/title I need to redirect only specific ids to non amp as

Is AJAX to load embeds possible in AMP?

Quick question: Is it possible to dynamically load content like <amp-twitter data-tweetid="611193269532295168" layout="responsive"> via AJAX into a

How to make a responsive amp-carousel

Is there any way to make a responsive amp-carousel? I've tried to use the attribute layout="responsive" on images within the carousel, but it doesn't work.

How to integrate Matomo Tag Manager in an AMP Website?

AMP restricts custom JavaScript which leads to an AMP error, when I implement Matomo Tag Manager as a regular JavaScript tag. How do I integrate the Matomo Tag

Creating a plain html home page AMP with WordPress running the other pages

Gday I like to know how you would go about creating a home page in plain html and have WordPress run the other pages? The reason is I’d like to create