-
AuthorPosts
-
June 3, 2015 at 7:11 pm #206889
Can you please advise which css code is used to change the colour of the menu text when item is hovered or active?
I have added the following to custom.css to change colour of menu text but cannot figure out how to change colour for hovered or active item.
.navbar-default .navbar-nav > li > a {
color: #BBBBBB
}TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 3, 2015 at 10:51 pm #572807So that we can try to best assist you, please provide the url of the site you’re working on,
as well as temporarily set “Optimize CSS” to “No” within your Template Manager–General settings.June 4, 2015 at 9:07 am #572846Hi Tom
The URL is:
http://positiveimpact.global/new
I have changed the background of the navigation bar to white, so need to change the text from white to another colour.
I think there will be two places – when rolling over there is a transition to grey then white and when the page is active the text is white.
Thank you for your assistance.
Kind regards
JillJune 4, 2015 at 9:07 am #737880Hi Tom
The URL is:
http://positiveimpact.global/new
I have changed the background of the navigation bar to white, so need to change the text from white to another colour.
I think there will be two places – when rolling over there is a transition to grey then white and when the page is active the text is white.
Thank you for your assistance.
Kind regards
JillTomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 5, 2015 at 12:22 am #572968For the ACTIVE state – when one is on the page . . . .
Look to file path –> /templates/ja_charity/local/css/template.css
at line 1066:
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
background-color: transparent;
color: #ffffff;
}Change the color code to whatever color code you wish.
For the HOVER state . . . .
A little further down the list (same CSS file), find the following CSS rule:
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
background-color: transparent;
color: #ffffff;
}Again, change the color code to whatever color code you wish.
SAVE CHANGES – CLEAR CACHE – REFRESH PAGEHope That Helps.
1 user says Thank You to TomC for this useful post
June 5, 2015 at 10:31 am #573027Many thanks Tom.
I was getting confused, as when using firebug the css was referring to a file in the t3assets folder.
I added the code you outlined above into my custom.css file and updated to colours I wanted and it is all working perfectly 🙂
June 5, 2015 at 10:31 am #738060Many thanks Tom.
I was getting confused, as when using firebug the css was referring to a file in the t3assets folder.
I added the code you outlined above into my custom.css file and updated to colours I wanted and it is all working perfectly 🙂
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 5, 2015 at 10:19 pm #573104<em>@jillymot 476658 wrote:</em><blockquote>Many thanks Tom.
I was getting confused, as when using firebug the css was referring to a file in the t3assets folder.
I added the code you outlined above into my custom.css file and updated to colours I wanted and it is all working perfectly :)</blockquote>
Glad I could be of assistance . . . All the best with your continuing site development. 🙂
1 user says Thank You to TomC for this useful post
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 5, 2015 at 10:19 pm #738137<em>@jillymot 476658 wrote:</em><blockquote>Many thanks Tom.
I was getting confused, as when using firebug the css was referring to a file in the t3assets folder.
I added the code you outlined above into my custom.css file and updated to colours I wanted and it is all working perfectly :)</blockquote>
Glad I could be of assistance . . . All the best with your continuing site development. 🙂
1 user says Thank You to TomC for this useful post
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by TomC 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum