• Resolved 77harry77

    (@77harry77)


    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 4 years, 2 months ago by 77harry77.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @77harry77,

    The Elementor plugin is not fully AMP compatible so some features may not work, our FAQ 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 component with some restrictions

    I will suggest using amp-bind toggle functionality.

    For CSS you can add custom CSS using the below code in the themes function.php.

    ref: https://developer.www.ads-software.com/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

    (@77harry77)

    Dear @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.