Support,
I have several modals throughout my site that work great. I’m trying to add an additional modal to my top bar, but am not having success. Right now I have a login button that redirects users to a login page. I’m trying to eliminate that page and hassle with a modal containing the login form. This is the code I’m using:
<a data-toggle=“modal” href="#Login” class=“wp-login-url”> Login
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" >Login</h4>
</div>
<div class="modal-body">
<div class="loginmodal">
[wpv-login-form allow_remember="true"]
<a href="http://www.motorfieds.com/lost-password">Lost your password?</a><br>
New user? Please <a href="http://www.motorfieds.com/register">click here </a>to register.
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
Is there a reason why this doesn’t work in the topbar, but works everywhere else on the site? Is additional coding needed in the functions.php file?
Thanks,
Chuck