AMP removes leading margin
-
AMP plugin (The official AMP plugin for WordPress) strips CSS from the icon, resulting in zero margin between icon and link text.
I’m not able to share the site, but this is probably easy to reproduce with the AMP plugin. (The site is running the Twenty Twenty theme.)
With AMP deactivated, the CSS lines responsible for the space between the link text and the icon, which appears to the right of the link, load correctly:
.wpel-icon-right i.wpel-icon { margin-left: .3em; }
When AMP is active, howwever, it removes all of wpel.css stylesheet during tree-shaking.
Reintroducing the CSS in the customizer and the child-theme stylesheet have no effect, even though the classes ‘wpel-icon-right’ and ‘wpel-icon’ remain in the page source.
Any workaround ideas would be appreciated.
- The topic ‘AMP removes leading margin’ is closed to new replies.