Title: AMP issues with swiper(toggle)
Last modified: December 17, 2020

---

# AMP issues with swiper(toggle)

 *  Resolved [77harry77](https://wordpress.org/support/users/77harry77/)
 * (@77harry77)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/amp-issues-with-swipertoggle/)
 * Greetings!
    Thank you to all who have worked on this amazing and lightning fast
   plugin. Unfortunately, I cannot use it as it is blocking several important features
   on my website at the moment. Mainly, the swiper function i.e. toggle or language
   switcher cannot be activated. I also have an issue loading the elementor gallery
   and some third party code. Finally, the css of the AMP sets my custom html iframe
   height to 400px, whereas I need them to be 50ish and I don’t know if it is at
   all possible to fiddle with the css of the AMP?
 * Any suggestions or help would be greatly appreciated.
    P.S. I have currently 
   disabled the plugin for functionality purposes, that is why the swipers are working
   if you check the website.
    -  This topic was modified 5 years, 5 months ago by [77harry77](https://wordpress.org/support/users/77harry77/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-issues-with-swipertoggle%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/amp-issues-with-swipertoggle/#post-13807515)
 * Hello [@77harry77](https://wordpress.org/support/users/77harry77/),
 * The Elementor plugin is not fully AMP compatible so some features may not work,
   our [FAQ](https://amp-wp.org/documentation/frequently-asked-questions/) has more
   info on it.
 * The toggle function may be based on javascript which will not work on AMP pages,
   as AMP pages won’t allow javascript. you may add javascript with [amp-script](https://amp.dev/documentation/components/amp-script/)
   component with some [restrictions](https://github.com/ampproject/worker-dom/blob/main/web_compat_table.md)
 * I will suggest using [amp-bind](https://amp.dev/documentation/components/amp-bind/)
   toggle functionality.
 * For CSS you can add custom CSS using the below code in the themes function.php.
 * ref: [https://developer.wordpress.org/reference/functions/wp_enqueue_style/](https://developer.wordpress.org/reference/functions/wp_enqueue_style/)
 *     ```
       add_action( 'wp_enqueue_scripts', function() {
           if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
               wp_enqueue_style( 'my-amp-styles' );
           }
       } );
       ```
   
 * If your theme allows adding CSS in customizer you can add with `html[amp]` as
   root selector.
 *  Thread Starter [77harry77](https://wordpress.org/support/users/77harry77/)
 * (@77harry77)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/amp-issues-with-swipertoggle/#post-13807573)
 * Dear [@milindmore22](https://wordpress.org/support/users/milindmore22/),
 * Thank you for your reply.
    This is brilliant. Thanks for all the reading material–
   even if I don’t find a solution it will still be an interesting lesson, no doubt.
   I will make a backup and spend the weekend trying to figure it out. I will be
   sure to let you know the outcome.

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

The topic ‘AMP issues with swiper(toggle)’ 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/)

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [swiper](https://wordpress.org/support/topic-tag/swiper/)
 * [toggle](https://wordpress.org/support/topic-tag/toggle/)

 * 2 replies
 * 2 participants
 * Last reply from: [77harry77](https://wordpress.org/support/users/77harry77/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/amp-issues-with-swipertoggle/#post-13807573)
 * Status: resolved