inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 7, 2016 2:18:17 GMT -8
Is it possible to have some navigation buttons to be a different colour to the other buttons? This would be a great feature as I always have members asking me where the link to such-and-such is. Allowing me to set some buttons with a different button can help me make them easy to find.
thanks
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 7, 2016 8:42:42 GMT -8
Is it possible to have some navigation buttons to be a different colour to the other buttons? This would be a great feature as I always have members asking me where the link to such-and-such is. Allowing me to set some buttons with a different button can help me make them easy to find. thanks This can be done in themes right Tumbleweed
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Mar 7, 2016 11:18:26 GMT -8
Is it possible to have some navigation buttons to be a different colour to the other buttons? This would be a great feature as I always have members asking me where the link to such-and-such is. Allowing me to set some buttons with a different button can help me make them easy to find. thanks This can be done in themes right Tumbleweed I don't think you can, P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓, but I did do it on a test site using some convoluted css that magically worked. lol I need to go find that test site and it is probably in some theme I don't remember so it might take some digging. I'll get back to you with help for this strewth78 as soon as I find that test site.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 7, 2016 12:06:14 GMT -8
I don't think you can, P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ , but I did do it on a test site using some convoluted css that magically worked. lol I need to go find that test site and it is probably in some theme I don't remember so it might take some digging. I'll get back to you with help for this strewth78 as soon as I find that test site. So they package the links in a variable i suppose...that bites. But i believe each link has its own class
|
|
inherit
209486
0
Mar 6, 2016 15:03:59 GMT -8
T.C.
2,614
May 2014
tacochuck
|
Post by T.C. on Mar 7, 2016 12:59:26 GMT -8
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 7, 2016 13:04:28 GMT -8
Here's the code to save some time.
/************************************************************************** * ALTERNATING NAVIGATION MENU COLOURS * **************************************************************************/ #navigation-menu > ul li:nth-child(8n+1) a { color: rgb(117, 200, 230)!important; border-color: rgb(117, 200, 230);} #navigation-menu > ul li:nth-child(8n+1) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
#navigation-menu > ul li:nth-child(8n+2) a { color: rgb(20, 173, 167)!important; border-color: rgb(20, 173, 167);} #navigation-menu > ul li:nth-child(8n+2) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
#navigation-menu > ul li:nth-child(8n+3) a { color: rgb(173, 201, 47) !important; border-color: rgb(173, 201, 47);} #navigation-menu > ul li:nth-child(8n+3) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
#navigation-menu > ul li:nth-child(8n+4) a { color: rgb(244, 181, 42) !important; border-color: rgb(244, 181, 42);} #navigation-menu > ul li:nth-child(8n+4) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
#navigation-menu > ul li:nth-child(8n+5) a { color: rgb(242, 210, 0) !important; border-color: rgb(242, 210, 0);} #navigation-menu > ul li:nth-child(8n+5) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
#navigation-menu > ul li:nth-child(8n+6) a { color: rgb(224, 110, 34) !important; border-color: rgb(224, 110, 34);} #navigation-menu > ul li:nth-child(8n+6) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
#navigation-menu > ul li:nth-child(8n+7) a { color: rgb(127, 118, 230) !important; border-color: rgb(127, 118, 230);} #navigation-menu > ul li:nth-child(8n+7) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
#navigation-menu > ul li:nth-child(8n+8) a { color: rgb(230, 118, 187) !important; border-color: rgb(230, 118, 187);} #navigation-menu > ul li:nth-child(8n+8) a:hover { color: rgb(159, 159, 159)!important; border-color: rgb(159, 159, 159)!important;}
If memory serves, it was the awesome Fallen Samurai that helped me do that. Apologies if it was someone else, it was a while ago.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Mar 7, 2016 14:27:14 GMT -8
Well, here I was searching and searching for that elusive test site with different colored menu links (never found it) and you all come in with an answer. And actually, I had tried using the :nth-child because if I remember right, I ran into trouble when a guest, member or staff were viewing because of such things as profile being gone, messing up the sequence targeted by the :nth-child but I could be wrong. Can't remember now why I ended up not using it but in case anyone wants to try my convoluted way it is directly targeting the link itself such as: a:link[href="/help"]{color:blue!important;border:1px solid green; } Lot's of options for strewth78.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Mar 7, 2016 22:24:17 GMT -8
Well, here I was searching and searching for that elusive test site with different colored menu links (never found it) and you all come in with an answer. And actually, I had tried using the :nth-child because if I remember right, I ran into trouble when a guest, member or staff were viewing because of such things as profile being gone, messing up the sequence targeted by the :nth-child but I could be wrong. Can't remember now why I ended up not using it but in case anyone wants to try my convoluted way it is directly targeting the link itself such as: a:link[href="/help"]{color:blue!important;border:1px solid green; } Lot's of options for strewth78 . Technically I believe your way supports older browsers than the nth child method.
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 11, 2016 3:18:58 GMT -8
many thanks. I start playing around with both options and see which works best for me.
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 11, 2016 4:23:16 GMT -8
hello. I've trying the option from stink666 it works on most pages. however, when i select a page from the menu, then the number order changes, making the 4th menu option 3 and the 5th becomes 4 etc. While any pages in the drop down nag maintain the correct order. www.bangbangbaseball.boards.net
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 11, 2016 4:28:31 GMT -8
Well, here I was searching and searching for that elusive test site with different colored menu links (never found it) and you all come in with an answer. And actually, I had tried using the :nth-child because if I remember right, I ran into trouble when a guest, member or staff were viewing because of such things as profile being gone, messing up the sequence targeted by the :nth-child but I could be wrong. Can't remember now why I ended up not using it but in case anyone wants to try my convoluted way it is directly targeting the link itself such as: a:link[href="/help"]{color:blue!important;border:1px solid green; } Lot's of options for strewth78 . Whereabouts would I apply this one? thanks
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Mar 11, 2016 16:25:01 GMT -8
Well, here I was searching and searching for that elusive test site with different colored menu links (never found it) and you all come in with an answer. And actually, I had tried using the :nth-child because if I remember right, I ran into trouble when a guest, member or staff were viewing because of such things as profile being gone, messing up the sequence targeted by the :nth-child but I could be wrong. Can't remember now why I ended up not using it but in case anyone wants to try my convoluted way it is directly targeting the link itself such as: a:link[href="/help"]{color:blue!important;border:1px solid green; } Lot's of options for strewth78 . Whereabouts would I apply this one? thanks That would go at the bottom of your style sheet: (Admin> Themes> Advanced Styles & CSS> Style Sheet>) And instead of what I posted before, use this instead: #navigation-menu a:link[href=" /search"], #navigation-menu a:visited[href=" /search"]{color:#0000ff!important;background-color:tan; } #navigation-menu a:hover[href=" /search"]{color:#00ffff!important; } The above is to change the search link color. You can get the extensions to each link by going to: Admin> Settings> Forum Settings> Navigation> So say you want to change the search and admin, each with a different color it would be: #navigation-menu a:link[href=" /search"], #navigation-menu a:visited[href=" /search"]{color:#0000ff!important;background-color:tan; } #navigation-menu a:hover[href=" /search"]{color:#00ffff!important; } #navigation-menu a:link[href=" /admin"], #navigation-menu a:visited[href=" /admin"]{color:#ff00ff!important;background-color:blue; } #navigation-menu a:hover[href=" /admin"]{color:#00ffff!important; } Hope that helps.
|
|