- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 20.05.19, 12:32
- Opened by: Marco Guarnieri
- 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
Hi, Marco.
You can add your custom code in the AMp settings https://take.ms/hkK6d
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
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