Title: Responsify WP and AMP
Last modified: November 15, 2016

---

# Responsify WP and AMP

 *  Resolved [Tymer007](https://wordpress.org/support/users/tymer007/)
 * (@tymer007)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/responsify-wp-and-amp/)
 * Hi,
 * I LOVE your plugin but I cant use it on AMP pages since its does not validate
   properly with it, is there a way to make it so it does not activate on AMP pages?
   
   AMP pages end with either /amp or /?amp Any way to do this?
 * Thanks!

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

 *  Plugin Author [stefanledin](https://wordpress.org/support/users/stefanledin/)
 * (@stefanledin)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/responsify-wp-and-amp/#post-8443767)
 * Hi Tymer007!
    Thanks for loving my plugin! 😀
 * I made a few tests and came up with this solution:
 * 1. Disable Content (and thumbnails, if needed) in the ‘Use on’ section on the
   RWP settings page.
    2. Add this code to your `functions.php`:
 *     ```
       add_action( 'wp', function() {
       	global $post;
       	if ( $post->post_name != 'amp' ) {
       		new Content_Filter( 'the_content' );
       	}
       }, 11 );
       ```
   
 * This code does exactly what RWP does when it boots up, but not on pages/posts
   with ‘amp’ as slug.
 *  Thread Starter [Tymer007](https://wordpress.org/support/users/tymer007/)
 * (@tymer007)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/responsify-wp-and-amp/#post-8445811)
 * Thanks a lot for your reply, but if I disable content and thumbnails wouldnt 
   it affect my site?
 *  Plugin Author [stefanledin](https://wordpress.org/support/users/stefanledin/)
 * (@stefanledin)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/responsify-wp-and-amp/#post-8447433)
 * Yes, it will disable RWP on the entire site, but the code snippet will enable
   it again, but not on posts/pages with `amp` as slug.
 *  Thread Starter [Tymer007](https://wordpress.org/support/users/tymer007/)
 * (@tymer007)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/responsify-wp-and-amp/#post-8449021)
 * Ok I did just what you told me, thanks for spending your time “fixing” this.
 *  Plugin Author [stefanledin](https://wordpress.org/support/users/stefanledin/)
 * (@stefanledin)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/responsify-wp-and-amp/#post-8449206)
 * No problems!
    Thanks for being a user 🙂

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

The topic ‘Responsify WP and AMP’ is closed to new replies.

 * ![](https://ps.w.org/responsify-wp/assets/icon-256x256.png?rev=1209208)
 * [Responsify WP](https://wordpress.org/plugins/responsify-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsify-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsify-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/responsify-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsify-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsify-wp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [stefanledin](https://wordpress.org/support/users/stefanledin/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/responsify-wp-and-amp/#post-8449206)
 * Status: resolved