• Priority: 0
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 27.01.25, 16:27
  • Opened by: Walter Tamburini

Ticket #25938 - AMP issue

Good morning Fred,
I have an issue about AMP pages on Google Search console.
I don’t understand the error:

CSS syntax error in tag ‘style amp-custom’.
AMP pages with this issue are invalid. Invalid AMP pages aren’t served on Google”

In the attachment the image.

Could you please help me?

Thank you
Best Regards

Attachments:

issue.jpg (113.6 KiB)

Comments

Fred 27 Jan 2025, 20:47

Hi, Walter.
Do you have it disabled? because I don't see AMP version of your store

Walter Tamburini 28 Jan 2025, 10:40

Good morning Fred,
I set the configuration below (In the attachment the image "config.jpg").
If I use this configuration, on a smartphone the e-commerce doesn't work in the categories (In the attachment the image "error.jpg").

Maybe, we should solve this problem first.

Thank you
Best Regards

Attachments:

config.jpg (148.3 KiB)
error.jpg (88.1 KiB)
Fred 28 Jan 2025, 21:56

Ok, the second issue is fixed. How t see the first one?

Walter Tamburini 29 Jan 2025, 10:03

Good morning Fred,
the AMP version seems to work, thank you very much.

There are still problems with Google, you can check the attachments.

1 - AMP HTML Tag has an invalid layout specified by its attributes.

2/3 - CSS syntax error in tag 'style amp-custom' has an incomplete and invalid declaration (6 instances about tag 'style amp-custom').

Best Regards

Attachments:

amp_error1.jpg (208.5 KiB)
amp_error2.jpg (278.8 KiB)
amp_error3.jpg (278.7 KiB)
Fred 29 Jan 2025, 21:55

I fixed css file. and remove empty carousel. Try to re-scan your amp site

Walter Tamburini 04 Feb 2025, 14:52

Good morning Fred,
I have the same problems.

Thank you
Best Regards

Attachments:

amp_error4.jpg (131.6 KiB)
Fred 04 Feb 2025, 16:09

I see "See Details" button there. Could you please check what's there, because it's not clear where exactly that invalid code is

Walter Tamburini 04 Feb 2025, 16:31

Good morning Fred,
in the attachment the screenshots.

Thank you
Best Regards

Attachments:

amp_error5.jpg (126.9 KiB)
amp_error6.jpg (114.6 KiB)
Fred 04 Feb 2025, 21:34

OK, I have fixed css errors, try to revalidate those pages