-
AuthorPosts
-
April 1, 2014 at 3:10 pm #196348
I m try to find a way to hide mega menu home button, but only when is active (on the frontpage). I create a class for the home button for example class “hide_home” and i use this css:
.t3-mainnav .navbar .nav .active .hide_home {
display: none;
}but is not working. Can someone help me on this??
newsun11026 Friend
newsun11026
- Join date:
- May 2012
- Posts:
- 62
- Downloads:
- 14
- Uploads:
- 7
- Thanks:
- 6
- Thanked:
- 19 times in 13 posts
April 1, 2014 at 3:22 pm #529013Hi,
You needn’t add some css. You only need add “hide” class in Extra Class (Mega Menu) for Home menu.April 1, 2014 at 3:28 pm #529015Hi. With this you can hide menu home button, but as i said, i only want to hide it when is active, i only want to hide it on the frontpage. Thats why i used class “active”.
newsun11026 Friend
newsun11026
- Join date:
- May 2012
- Posts:
- 62
- Downloads:
- 14
- Uploads:
- 7
- Thanks:
- 6
- Thanked:
- 19 times in 13 posts
April 1, 2014 at 3:38 pm #529016I understood. You can try this CSS.
#t3-mainnav li.current.active.hide-home {
display: none;
}
Notice: nospace between .active and .hide-homeApril 1, 2014 at 3:42 pm #529018The perfect solution!! Thanks a lot!!
newsun11026 Friend
newsun11026
- Join date:
- May 2012
- Posts:
- 62
- Downloads:
- 14
- Uploads:
- 7
- Thanks:
- 6
- Thanked:
- 19 times in 13 posts
April 1, 2014 at 3:44 pm #529019Hi,
If you need more support, don’t hesitate to contact usdsinor Friend
dsinor
- Join date:
- July 2014
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
February 19, 2015 at 8:46 pm #560053Hi.
Instead of adding new classes in megamenu and also adding styles in custom.css, why not make a simple change in the navbar.less file:
Go to the // Default Navbars section,
scroll down to > .active > a {
and change the color: @navbar-default-link-active-color;
to display: none;This removes the menu button for every active page.
Whether it works optimally with drop down menus may be a function of whether there is a page associated with the title item in the drop menu.
Thoughts?
I’m a noob, so I’d love to learn if there is a reason for not doing this, at least for simple sites that don’t use drop-downs.
thx!
-
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by dsinor 9 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum