Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

Zong Han Huang
Zong Han Huang
161 Points

Wordpress custom sign up in popup

Hi, I'm trying to customize sign up page in popup. I create an overlay and show /wp-signup.php/ content in that overlay. I want to that when user click Next button that will still in the overlay, but right now it direct to /wp-signup/ page not in the overlay.

This is my site(please click open): http://adword.vip/

I want to like :http://edublogs.org/

Html:

<!-- The overlay -->
<div id="myNav" class="overlay">
 <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
   <!-- Overlay content -->
  <div class="overlay-content" id="overlay-content">
  </div>
</div>
<span id="open" onclick="openNav()">open</span>

Javascript:

<script>
 jQuery(document).ready(function(){

  jQuery("#open").click(function(){
      jQuery("#overlay-content").load('/wp-signup.php');
      jQuery("#header_container").hide();
  });

    jQuery("#next").click(function(){
    jQuery("#overlay-content").load( '/wp-signup.php');
     });
  });
</script>

I think problem is in

 jQuery("#next").click(function(){
    jQuery("#overlay-content").load( '/wp-signup.php');
     });

What can I do? or is there any better way?

Thanks for help.