-
AuthorPosts
-
erkdahl Friend
erkdahl
- Join date:
- December 2010
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
January 5, 2011 at 5:05 pm #158337Hi,
Im trying to create a login/signup menu item on my mega menu.
I want it to look simular to the “yootheme expo”-signup menuitem.
http://www.yootheme.com/demo/joomlaThis means pushing the menuitem to the right side and possible give it another color.
Is this possible?Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 6, 2011 at 8:19 am #370411<em>@erkdahl 213009 wrote:</em><blockquote>Hi,
Im trying to create a login/signup menu item on my mega menu.
I want it to look simular to the “yootheme expo”-signup menuitem.
http://www.yootheme.com/demo/joomlaThis means pushing the menuitem to the right side and possible give it another color.
Is this possible?</blockquote>
Please follow to the guide in here to learn to load module in menu itemYou would like to have a look of the login module same as the “yootheme expo”-signup menu item,
i’m afraid that i wont be able to help you, you can try to find one on the JED http://extensions.joomla.org/search?q=login&start=80
Thankserkdahl Frienderkdahl
- Join date:
- December 2010
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
January 7, 2011 at 2:02 pm #370646I have been able to figure some of this out for myself.
I’ve created new colored menu-images, created new classes to display the menu-item in the correct color and styling, and are now configuring the mega.js file to set and remove the correct classes on mouseover-etc.So far so good.
Only problem is that i cant figure out what file is putting the ‘active’ class on my active menu-item when it is loaded.
I dont want the active class to be set, as I have created my own active-green class to be set instead.
It looks as the mega.js have code that will set the correct class when the mouseclick happens. This is all fine and working correct with me. When the click happens the menuitem will have the correct class ‘active-green’. But then the second later, when the page is actually loaded there is some script running that is adding the ‘active’ class to my item and i then have two conflicting classes. Currently i have used !important to solve this, but this is not a good solution.anyone knows what script adds active to menu item when page is loaded?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 7, 2011 at 2:24 pm #370650Can you not use !important on your custom class? If that doesn’t work please post a link so I can investigate.
erkdahl Frienderkdahl
- Join date:
- December 2010
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
January 7, 2011 at 2:32 pm #370653Yeah, it works allright. I just dont like to use !important because i consider it bad practise.
But I’ll accept the solution. I’m afraid i dont have enough time to look for a better solution on this project.Thanks anyway!
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by erkdahl 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum