Title: Problem in AMP pages
Last modified: July 24, 2019

---

# Problem in AMP pages

 *  [sanjayojha303](https://wordpress.org/support/users/sanjayojha303/)
 * (@sanjayojha303)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/problem-in-amp-pages/)
 * Hi,
    This plugin is awesome and better than other popular alternative. I am using
   [Official AMP plugin](https://wordpress.org/plugins/amp/). Unfortunately this
   plugin does not work with it. It display the toggle **[show/hide]** link, but
   that does not work. So my question is: 1. Can we completely disable it only for
   AMP pages ? 2. Is it possible to make it work on AMP as well?

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

 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/problem-in-amp-pages/#post-11762350)
 * Hello, [@sanjayojha303](https://wordpress.org/support/users/sanjayojha303/) !
 * We are working on AMP support. But while we can not specify the time when it 
   will be implemented.
 *  Thread Starter [sanjayojha303](https://wordpress.org/support/users/sanjayojha303/)
 * (@sanjayojha303)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/problem-in-amp-pages/#post-11762363)
 * Thank you for prompt response.
 * Is it any easy way for now to remove it from AMP page. May be any hook ?
 *  Plugin Author [LuckyWP](https://wordpress.org/support/users/theluckywp/)
 * (@theluckywp)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/problem-in-amp-pages/#post-11762367)
 * Unfortunally there is no easy way(
 *  Thread Starter [sanjayojha303](https://wordpress.org/support/users/sanjayojha303/)
 * (@sanjayojha303)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/problem-in-amp-pages/#post-11762518)
 * Hope you add support for this soon.
    For those who needs temporary solution. 
   Remove the shortcode from content using `the_content` hook. Below is the example.
 *     ```
       /**
        * remove toc from AMP pages
        * @param string $content WP Post content.
        * @return string
        */
       function remove_toc_shortcodes( $content ) {
   
       	if ( ! is_amp_endpoint() ) {
       		return $content;
       	}
   
       	return str_replace('[lwptoc]', '', $content);
       }
       add_filter( 'the_content', 'remove_toc_shortcodes' );
       ```
   
 * _Note: for this, you should disable auto insert and manually add shortcode in
   your content_
    -  This reply was modified 6 years, 11 months ago by [sanjayojha303](https://wordpress.org/support/users/sanjayojha303/).
    -  This reply was modified 6 years, 11 months ago by [sanjayojha303](https://wordpress.org/support/users/sanjayojha303/).
    -  This reply was modified 6 years, 11 months ago by [sanjayojha303](https://wordpress.org/support/users/sanjayojha303/).

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

The topic ‘Problem in AMP pages’ is closed to new replies.

 * ![](https://ps.w.org/luckywp-table-of-contents/assets/icon-256x256.png?rev=2100677)
 * [LuckyWP Table of Contents](https://wordpress.org/plugins/luckywp-table-of-contents/)
 * [Support Threads](https://wordpress.org/support/plugin/luckywp-table-of-contents/)
 * [Active Topics](https://wordpress.org/support/plugin/luckywp-table-of-contents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/luckywp-table-of-contents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/luckywp-table-of-contents/reviews/)

## Tags

 * [amp problem](https://wordpress.org/support/topic-tag/amp-problem/)

 * 4 replies
 * 2 participants
 * Last reply from: [sanjayojha303](https://wordpress.org/support/users/sanjayojha303/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/problem-in-amp-pages/#post-11762518)
 * Status: not resolved