Support » Plugin: AMP » Add CSS

  • Resolved taisa1984



    I had been using Yoast + AMP with the plugin, and I was able to add some extra css for AMP. But now that the plugin says it is not needed anymore… I can’t find where I can add some css to fix some simple details (remove some bullets and change the display from some elements so they appear in a better way).

    Where can I do this? If I add them to the custom css from customization it doesn’t make any changes to AMP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support James Osborne


    If using reader mode along with the legacy reader mode template you can apply CSS changes using code similar to the below, added to your active themes functions.php file or preferably a custom plugin so it doesn’t get overwritten:

    add_action( 'amp_post_template_css', function() {
            /* Put Custom CSS here */
    } );

    Let me know if you have any further queries on this. If you decide to use one of the newer reader mode templates you can make changes to that templates stylesheets, or a child theme.



    Thank you, it worked fine.

    Plugin Support James Osborne


    Excellent, great to hear it.

    If you have a moment free be sure to share your thoughts on using the AMP plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.