Support » Plugin: Login/Signup Popup ( Inline Form + Woocommerce ) » How to Redirect a Button to the Login Popup

Viewing 9 replies - 1 through 9 (of 9 total)
  • Just to follow up and see if there’s a solution to this.

    Just need to know how to make a button (in this case Learndash’s [Login to Enroll] ) use the plugin’ popup and not WordPress’s login page.

    Please.
    This is the only issue with the plugin but the action is inconsistent with how it functions with other buttons (login, SignUp, lost password, etc…).

    Thank you.

    Plugin Author xootix

    (@xootix)

    Hello,

    You need to provide your learndash button a class. For eg:
    <button class="xoo-el-login-tgr">Login to enroll</button>
    Attribute class=”xoo-el-login-tgr” will work for any HTML element.

    Thank you.

    Sorry, but I’m an excellent copy/paste type person…not a closer.

    Any chance of getting a bit more detail of what to put where?

    🙂

    Plugin Author xootix

    (@xootix)

    I won’t be able to tell you that. Every plugin has its own template structure.
    Kindly share the page link where button is displayed.

    How about you just remove the learn dash button & use this shortcode to generate a new popup button
    [xoo_el_action type="login" display="button"]

    • This reply was modified 2 weeks, 5 days ago by xootix.

    Thank you.

    Learndash’s demo page, with the Login to Enroll button, is
    https://demo.learndash.com/courses/basic-learndash-overview/

    I haven’t touched the files… only the design, so they structure should be the same.

    Does this help?

    Plugin Author xootix

    (@xootix)

    Hi,

    If this doesn’t work, kindly contact learndash support & ask them “How to add a class to learnsdash login button”

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

    Thank you.
    It works…but refreshes after 3~4 seconds back to WP`s default login.
    Ill ask Learndash if they can assist. If they have a final solution Ill post it here.

    Thank you for the support and work.
    The plugin is excellent and I`ll continue to use it.

    Plugin Author xootix

    (@xootix)

    This should fix the redirect
    Please replace.

    add_action( 'wp_footer', function(){
    	?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    			$('.ld-button').click(function(e){
    				e.preventDefault();
    				$('.xoo-el-login-tgr').trigger('click');
    			})
    		})
    	</script>
    	<?php
    } );
    • This reply was modified 2 weeks, 2 days ago by xootix.

    Xootix,
    I`m always appreciative of good work but am not easily impressed.
    You have done both…excellent work and impressed me.

    The plugin is exactly what I needed, and your follow up and solution is spot on for a unique compatibility issue with Learndash.

    Works perfectly.
    THANK YOU.

    Dear Internet,
    Pay attention to Xootix.

    • This reply was modified 2 weeks, 2 days ago by newguy321123.
Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.