• Clicking Login works great on my main site and appears to work fine on my iPad. From my iPhone however, nothing happens when I click “Login”. No pop up, no redirect etc. Not sure what I’m missing that is causing the login popup not to . . . well, not to pop up.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author xootix

    (@xootix)

    Your mobile menu modifies the class name added by plugin.
    Add this code to your functions.php

    add_action( 'wp_footer', function(){
    	?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    		    $('.sidr-class-xoo-el-login-tgr').on('click', function(){
    		        $('.xoo-el-login-tgr').trigger('click')
    		    })
    		})
    	</script>
    	<?php
    } );
    Thread Starter myenglishimages

    (@myenglishimages)

    Thank you.
    I added the code to the Functions.php but there was no change.

    Do I have to add it to a certain place in the file or can I just paste it at the end?

    can you help me with this problem too? I also want to display the login popup on the mobile display. You can see it at https://beraee.com/

    Plugin Author xootix

    (@xootix)

    @myenglishimages Just paste it at the very end.
    Your site is down, so I could not check it.

    Plugin Author xootix

    (@xootix)

    @androidrion

    There are no login/signup menu items visible for your mobile design.

    add_action( 'wp_footer', function(){
    	?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    		    $('.sticky-wrapper .my-account').on('click', function(e){
                    e.preventDefault();
    		        $('.xoo-el-login-tgr').trigger('click')
    		    })
    		})
    	</script>
    	<?php
    } );
    • This reply was modified 4 years, 6 months ago by xootix.
    Thread Starter myenglishimages

    (@myenglishimages)

    So, I figured it out without adding the code. In case this is helpful for other users, I’ll tell you what I did.

    I have the OceanWP theme. Adding the code above caused some sort of conflict with the theme which is why the site wasn’t available. Once I replaced the existing, edited version of the Functions.php file with a fresh copy from the theme I just

    went to Appearance > Customize > Header > Mobile Menu and set the style to full screen.

    I had it as sidebar and it wouldn’t work from there. So, basically, your plugin works perfectly without the additional code as long as the settings in the theme are correct.

    I hope that explanation makes sense.

    thanks, it’s work.

    fue a Apariencia > Personalizar > Encabezado > Menú móvil y establecer el estilo en pantalla completa.

    Funciono a la perfección. Gracias por compartir.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Popup on mobile?’ is closed to new replies.