How To Add Custom CSS And Script In AMP Pages
50,000
byte size limit too.
For example:
<style amp-custom>
h1 {
color: red
}
</style>
As for the script, you're not able to include authored JavaScript in AMP documents. You'll need to look for an equivalent AMP component.
Solution 2:
it's working for me, try this
<style amp-custom>
@import url('css/main.css');
</style>
Post a Comment for "How To Add Custom CSS And Script In AMP Pages"