• Closed by: Marek
  • Closed on: 02.07.19, 21:44
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14594 - AMP - integration

Hi Marek, I installed the “Multi Accessories” module. I have a problem with AMP. The module works well in the desktop version, but in AMP it does not load CSS and JS. I heard the developer of the module and he wrote “Please let us know how to include css files & js files in the AMP?” Can you help me?
(example: https://www.shop.everlifedesign.it/it/mobile/product/128) thankyou

Comments

Marek 20 May 2019, 21:06

Hi, Marco.
You can add your custom code in the AMp settings https://take.ms/hkK6d

Marco Guarnieri 21 May 2019, 09:51

hello Marek, thanks.
ok for the CSS code that works, but how do I insert a Javascript? If I try to insert it in “CUSTOMER CSS” between the <script> and </script> tags it doesn’t work

Marek 21 May 2019, 09:54

You can add it to the file /themes/alysum/templates/mobile/_partials/head.tpl
But AMP doesn’t allow custom js scripts, so your pages will not be AMP valid