Questions tagged [google-amp]

The AMP Project is an open-source initiative aiming to make the web better for all. The project enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms.

101 questions
2
votes
0 answers

Is Google AMP supported in Thailand / for Thai language?

During a visit to Google Headquarter in Bangkok, we learned that Thailand was the only country not supporting AMP. (more specifically Thai language as English pages works just fine). As this meeting was last March, I was just wondering if it's still…
2
votes
3 answers

Custom React Attributes with Brackets

In this answer it's explained how to use the undocumented is feature to add a custom attribute to a React element. However, I'd like to add an attribute for use with amp-bind which is surrounded by brackets. When I try this the attribute is not…
Gil Birman
  • 35,242
  • 14
  • 75
  • 119
2
votes
1 answer

Styling responsive layout in amp-img

Since I've implemented Google AMP I am struggling with this problem. Every time I add an image with a width far smaller than my website width, amp-img automatically add margins to keep the aspect ratio, like this: I have tried other layouts…
Alejandro Alcalde
  • 5,990
  • 6
  • 39
  • 79
1
vote
1 answer

Custom Image on Google Tag Manager (AMP)

I need to add custom scripts to my AMP GTM container. We have one for a facebook event. For custom image URL we are using https://www.facebook.com/tr?id=[MY_ID]=PageView&noscript=1 I need to do something similar for Pardot.
good_afternoon
  • 1,529
  • 1
  • 12
  • 41
1
vote
0 answers

AMP for WordPress: Home page /amp only displays right column widget

When I use the /amp suffix to check AMP Pages it works normally, but when I do it on our home page (www.oursausalito.com) it shows just one widget from the right hand column, despite the amp content being formatted the same way as the other…
E.D.
  • 11
  • 1
1
vote
1 answer

AMP-LIST - Change Height on [src] Change

Here is the page referred to in this question. I have an amp-list that pulls inventory data from a couple of JSON files based on the first selection. 'Select your machine type' pulls all.json, 'Excavator' pulls EX.json, and 'Wheel Loader' pulls…
Craig Scott
  • 892
  • 4
  • 14
1
vote
0 answers

JSON link in amp-list is not loading

I'm trying to load dynamic data to my amp page. For testing I tried one of the examples(amp-list) from google playground. But the server I'm currently on is http. AMP requires https link for the json file to work. So I moved the file to another…
Arjun
  • 11
  • 2
1
vote
0 answers

use amp-selector within amp-list

Is it possible to use amp-selector within amp-list? On page load, the items are rendered, but when the filter is applied, the items do not render.
teknova
  • 857
  • 1
  • 6
  • 12
1
vote
3 answers

can i use php code in AMP?

I have a site. I want to create Google AMP code for my site. What is the best way to transfer data between my existing site & new google AMP site. I make a decision to create a new domain for my existing site. Is it good or bad?
Atick
  • 29
  • 1
  • 3
1
vote
1 answer

How to amp-bind by Index

Is it possible to add/remove slides at a given index in amp-carousel, or add/remove pages at a given index in a multi-page flow, and to have the slide/page bound to a selector? For example: In the code below, when a region is selected, the city &…
teknova
  • 857
  • 1
  • 6
  • 12
1
vote
2 answers

How to apply dynamic style to AMP page?

Currently we have in our web site we have one slider as following. As we can see that position of pointer(arrow of asking price) is changed based on Fair Condition, Good Condition and Asking Price value. This value comes through api and then we…
yajiv
  • 2,901
  • 2
  • 15
  • 25
1
vote
3 answers

Google AMP - Save current page URL to local storage

Can anyone point me in the right direction? I'm building a landing page that is supposed to store the current page URL with query strings to local storage. I've looked all over, but can't find a solution that will keep my AMP page valid.
Jason Spence
  • 472
  • 5
  • 16
1
vote
2 answers

Disable AMP For A Form Submission

I am working on an existing static site (only HTML and Javascript) that uses AMP. I need to add a form that submits a POST request to a third party service. The service only accepts POST requests. When I add the form using normal HTML I get the…
jason
  • 1,247
  • 1
  • 9
  • 25
1
vote
3 answers

Amp-forms how to toggle disabled attribute

I have an amp-form with several radio buttons. Depending on the radio button selected I would like to disable or enable an input field. The input field is disabled by default. Given that the input includes the disabled attribute the field is always…
blindChicken
  • 352
  • 4
  • 13
1
vote
0 answers

AMP amp-user-notification data-dismiss-href request making two requests

So I have amp almost completely implemented on my site, but I am currently stuck on finishing up the EU-Cookie consent stuff. Right now I am using an amp-user-notification to show the user a notification in the bottom corner of the screen that…