Jump to content

Move Sign out to [username]


Recommended Posts

It would more user-friendly if "Sign out" appeared in a drop-down menu when hovering username in header.

Which would also allow to display the rest of "My account" elements in that drop-down menu.

 

Yes it is more user friendly, that's why I decided to write a blog post on how to achieve that: http://premiumpresta.com/blog/how-to-create-a-my-account-drop-down-link-list-for-prestashop-v1-6/

Enjoy!

  • Like 1
Link to comment
Share on other sites

 

Awesome!
How would you edit this, so that the drop-down menu does not show up onClick, but onMouseOver ?
Thanks

 

I've just replied to your comment. Here's what you need to do:

 

As far as I know Bootstrap made the decision to use the click event for mobile devices. 

To enable this at mouse hover edit /root/themes/default-bootstrap/sass/global.scss file and add this code:

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
} 

This will work on mouse hover and on click too.

PS: Don't forget to to recompile the sass code.

Edited by Catalin Scaesteanu (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...