Title: Custom CSS in reader mode?
Last modified: May 2, 2019

---

# Custom CSS in reader mode?

 *  Resolved [Benjamin Heller](https://wordpress.org/support/users/heller_benjamin/)
 * (@heller_benjamin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-css-in-reader-mode/)
 * Hi,
 * Just a quick question. In reader mode, what’s the best practice for adding some
   custom css? It understand it’s a bit of a stripped down mode for compatibility
   with a larger variety to themes.
 * Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-css-in-reader-mode/#post-11489784)
 * Hello! You can add custom CSS in Reader mode by adding the following code your
   theme’s `functions.php` or a custom plugin:
 *     ```
       add_action( 'amp_post_template_css', function() {
       	?>
       	/* Put Custom CSS here */
       	<?php
       } );
       ```
   
 * AMP allows most CSS, but there are a couple restrictions: [https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/style_pages](https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/style_pages)
 * Be sure you don’t add so much CSS that it goes over the 50KB limit.
 *  Thread Starter [Benjamin Heller](https://wordpress.org/support/users/heller_benjamin/)
 * (@heller_benjamin)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-css-in-reader-mode/#post-11490854)
 * Thanks Weston. That’s perfect.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom CSS in reader mode?’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Benjamin Heller](https://wordpress.org/support/users/heller_benjamin/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/custom-css-in-reader-mode/#post-11490854)
 * Status: resolved