-
AuthorPosts
-
fbernardello Friend
fbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
July 21, 2015 at 8:23 pm #209073Dear support,
we know it’s possible on Teline V to change the color of a menu voice setting it into the category (as described here: http://www.joomlart.com/documentation/joomla-templates/ja-teline-v/how-to#category-color).But, what if I have a menu voice which is not referring to a category (for example a title separator)?
Menu default Hover colour is black. How can I change it?
I tryed to define a new class, called “menured” on custom.css file, and I tryed to insert it into the “link CSS class” on “Link options” on the menu voice.This is the code I used:
a.menured {
background-color: @red;
}
a.menured:hover {
background-color: @red;
}
a.menured:focus {
background-color: @red;
}
a.menured:active {
background-color: @red;
}Unfortunately 🙂 it’s not working.
Have you got suggesions/workaround?Regards,
F.Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 22, 2015 at 9:21 am #578268Hi @fbernardello,
You can try this method :
1. Create new separator menu item with type Text Separator
2. Navigate to admin >>> Extensions >>> Template Manager >>> choose your template >>> hit Megamenu button to edit Megamenu >>> click the Text Separator menu item >>> type appropriate color class name in Extra Class
3. Refer to this section in documentation and look for everywhere it’s indicate a tag in the code, duplicate that line and replace a with “.separator” (without double quote). For example :
.magazine-category-title {
// ---------------
&.cat-red {
a {
background-color: @red;
&:hover, &:focus, &:active {
background-color: @red;
}
}
}
}change to :
.magazine-category-title {
// ---------------
&.cat-red {
a,
.separator {
background-color: @red;
&:hover, &:focus, &:active {
background-color: @red;
}
}
}
}or change :
.item-list .item .item-inner .item-title a:hover,
.item-list .item .item-inner .item-title a:active,
.item-list .item .item-inner .item-title a:focus {
color: @red;
}to :
.item-list .item .item-inner .item-title a:hover,
.item-list .item .item-inner .item-title a:active,
.item-list .item .item-inner .item-title a:focus,
.item-list .item .item-inner .item-title .separator:hover,
.item-list .item .item-inner .item-title .separator:active,
.item-list .item .item-inner .item-title .separator:focus {
color: @red;
}Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 22, 2015 at 9:21 am #644559Hi @fbernardello,
You can try this method :
1. Create new separator menu item with type Text Separator
2. Navigate to admin >>> Extensions >>> Template Manager >>> choose your template >>> hit Megamenu button to edit Megamenu >>> click the Text Separator menu item >>> type appropriate color class name in Extra Class
3. Refer to this section in documentation and look for everywhere it’s indicate a tag in the code, duplicate that line and replace a with “.separator” (without double quote). For example :
.magazine-category-title {
// ---------------
&.cat-red {
a {
background-color: @red;
&:hover, &:focus, &:active {
background-color: @red;
}
}
}
}change to :
.magazine-category-title {
// ---------------
&.cat-red {
a,
.separator {
background-color: @red;
&:hover, &:focus, &:active {
background-color: @red;
}
}
}
}or change :
.item-list .item .item-inner .item-title a:hover,
.item-list .item .item-inner .item-title a:active,
.item-list .item .item-inner .item-title a:focus {
color: @red;
}to :
.item-list .item .item-inner .item-title a:hover,
.item-list .item .item-inner .item-title a:active,
.item-list .item .item-inner .item-title a:focus,
.item-list .item .item-inner .item-title .separator:hover,
.item-list .item .item-inner .item-title .separator:active,
.item-list .item .item-inner .item-title .separator:focus {
color: @red;
}Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 22, 2015 at 9:21 am #743191Hi @fbernardello,
You can try this method :
1. Create new separator menu item with type Text Separator
2. Navigate to admin >>> Extensions >>> Template Manager >>> choose your template >>> hit Megamenu button to edit Megamenu >>> click the Text Separator menu item >>> type appropriate color class name in Extra Class
3. Refer to this section in documentation and look for everywhere it’s indicate a tag in the code, duplicate that line and replace a with “.separator” (without double quote). For example :
.magazine-category-title {
// ---------------
&.cat-red {
a {
background-color: @red;
&:hover, &:focus, &:active {
background-color: @red;
}
}
}
}change to :
.magazine-category-title {
// ---------------
&.cat-red {
a,
.separator {
background-color: @red;
&:hover, &:focus, &:active {
background-color: @red;
}
}
}
}or change :
.item-list .item .item-inner .item-title a:hover,
.item-list .item .item-inner .item-title a:active,
.item-list .item .item-inner .item-title a:focus {
color: @red;
}to :
.item-list .item .item-inner .item-title a:hover,
.item-list .item .item-inner .item-title a:active,
.item-list .item .item-inner .item-title a:focus,
.item-list .item .item-inner .item-title .separator:hover,
.item-list .item .item-inner .item-title .separator:active,
.item-list .item .item-inner .item-title .separator:focus {
color: @red;
}fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
July 22, 2015 at 3:17 pm #578303Dear @adam M,
thank you for your reply: if I apply a class (ex cat-red) on megamenu Extra Class for a “category menu voice”, it works.
But if I try to apply it to another object it doesn’t.About the suggestion on point 3, I checked the documentation (chapter 2. For menu item) but it speaks about category colors.
When you write ” look for everywhere it’s indicate a tag in the code” what file/files are you referring to? (I checked for example megamenu.css), but I’m not sure about it.Regards,
FedericoAdam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 23, 2015 at 4:36 am #578371Hi @fbernardello,
1. Assuming you want to apply color purple to that menu item, first follow step 1 above and add appropriate class name to menu item.
2. Open file /templates/ja_teline_v/css/custom.css (if you don’t have this file, just create a new one) then add this code :
.navbar-default .navbar-nav > li.cat-purple > .separator:hover,
.navbar-default .navbar-nav > li.cat-purple > .separator:focus {
background-color: #8c5de4 !important;
}1 user says Thank You to Adam M for this useful post
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 24, 2015 at 4:01 am #578482Hi @fbernardello,
You can try modify previous code as below and let me know the result :
.navbar-default .navbar-nav > li.cat-purple.open > .separator,
.navbar-default .navbar-nav > li.cat-purple.open > .separator:hover,
.navbar-default .navbar-nav > li.cat-purple > .separator:hover,
.navbar-default .navbar-nav > li.cat-purple > .separator:focus {
background-color: #8c5de4 !important;
}Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
July 24, 2015 at 4:02 am #578481Hi @fbernardello,
You can try modify previous code as below and let me know the result :
.navbar-default .navbar-nav > li.cat-purple.open > .separator,
.navbar-default .navbar-nav > li.cat-purple.open > .separator:hover,
.navbar-default .navbar-nav > li.cat-purple > .separator:hover,
.navbar-default .navbar-nav > li.cat-purple > .separator:focus {
background-color: #8c5de4 !important;
}1 user says Thank You to Adam M for this useful post
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
July 24, 2015 at 7:30 am #578508Hi Adam M,
great! Thank you very much for your precious help!Regards,
F. -
AuthorPosts
This topic contains 12 replies, has 2 voices, and was last updated by fbernardello 9 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum