Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trying to insert a drop down Login Box

Featured Replies

Hi everyone,

 

i am trying to insert a neat drop down login box. i have downloaded some source code from this site:

http://thefinishedbox.com/freebies/scripts/jquery-dropdown-login/#

 

I now have a zip file containing a a css, Java Script sheet, images and an example html.

I am trying to insert this into a Wordpress theme and i have no idea what to do with the zip file.

 

If anyone can guide me through this i would be very grateful.

 

regards

 

Andermax

 

p.s I am very new to design and any additional tips would be appreciated.

Are you familiar with php and the wordpress set up? If not, I think you might find it easier to find a plugin written specifically for wordpress. Head on over to the cms forum and ask there; also do a search within the wordpress dashboard.

 

You can also try Theme My Login, last I used it (2 years ago) it was good but if you are specifically looking for toggle functionality it won't do.

Instead of using ul for your child (sub) menu, use a div. And assign a class to that div. Inside that div, put your login form there.

 

Essentially, you will have the following markup:

 

<ul>
<li><a href="#">nav</a></li>
<li><a href="#">nav</a></li>
<li><a href="#">nav</a></li>
<li><a href="#">nav</a></li>
<li><a href="#">login hover</a>
<div class="nav_login_container">
<form>
<input>
<input>
<submit>
</form>
</div>
</li>
</ul>

 

As for your CSS, the absolute basics is:

li {position:relative;display:block;float:left;}
div.nav_login_container {position:absolute;top:0;left:0;display:none}

li:hover > div.nav_login_container {display:block;}

 

Then, you could use jQuery to spice it up a bit. Perhaps add a fadeIn/fadeOut, or slideDown/slideUp, or custom animation? Your choice.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.