Archived

This topic is now archived and is closed to further replies.

  • 0

Login on Fixed Nav Part 2


Question

Posted · Report post

Followup on: http://www.pagelines.com/forum/topic/25635-login-on-fixed-nav/

 

I have another question regarding a login in fixed nav. I am nearly there... but having trouble regarding the dropdown. When I click "Sign Up" the login menu pulls down, but however when you click an input, the window closes. Is there anyway to not have it do this?

 

My code in the get_search_form hook, via hooker:

<style>
.searchform {
  display: none !important;
}
.test {
  float: right;
  
.divider-vertical ul li {
  height: 40px;
  margin: 0 9px;
  border-right: 1px white solid;
  border-left: 1px #111111;
}
</style>

    <div class="test">
    <ul id="menu-ksa-main-menu" class="pldrop navline pull-right">
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">
<form method="post" action="login" accept-charset="UTF-8">
<input style="margin-bottom: 15px;" type="text" placeholder="Email" id="email" name="email">
<input style="margin-bottom: 15px;" type="password" placeholder="Password" id="password" name="password">
<input style="float: left; margin-right: 10px;" type="checkbox" name="remember-me" id="remember-me" value="1">
<label class="string optional" for="user_remember_me"> Remember me</label>
<input class="btn btn-primary btn-block" type="submit" id="sign-in" value="Sign In">
</form>
</div>
    </li>
    </ul>
    </div>

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

That looks like exactly what I need...

 

Another noob question... where can I put javascript so it is safe and wont be overwritten after a pagelines update?

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, you can paste your js code into the footerscripts box at the bottom of Pagelines>site options>custom code. It will be safe there from updates :-)

Share this post


Link to post
Share on other sites