Jump to content


Photo
- - - - -

Login on Fixed Nav Part 2

login fixed nav logon username

  • Please log in to reply
3 replies to this topic

#1 srussel2

srussel2

    Advanced Member

  • Members
  • 39 posts
  • Country: Country Flag

Posted 08 May 2013 - 03:44 AM

Followup on:

Please Login or Register to see this Hidden Content

 

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:

Please Login or Register to see this Hidden Content



#2 James B

James B

    Advocate

  • Moderators
  • 4985 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 08 May 2013 - 04:32 AM

From what i can see those dropdowns use javascript, it's set up to close when clicked. You'll need to use another script according to this post on stack overflow to stop it closing when clicked -

Please Login or Register to see this Hidden Content



#3 srussel2

srussel2

    Advanced Member

  • Members
  • 39 posts
  • Country: Country Flag

Posted 09 May 2013 - 02:56 AM

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?



#4 James B

James B

    Advocate

  • Moderators
  • 4985 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 09 May 2013 - 03:25 AM

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 :-)







Also tagged with one or more of these keywords: login, fixed nav, logon, username