The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[HELP] Change Color Every Navigation

4 posters

Go down

[HELP] Change Color Every Navigation Empty [HELP] Change Color Every Navigation

Post by Almaftuchin April 13th 2017, 5:06 am

Hello masters, i want to ask, how to change navigation color for every page?
for example:
i open the Home with blue navigation color, then i open portal and changing color blue to red, then i open faq and changing color from red to yellow, and etc
how to it?
Almaftuchin
Almaftuchin
New Member

Male Posts : 6
Reputation : 2
Language : English
Location : Indonesia

http://www.almaftuch.in

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by SLGray April 13th 2017, 5:27 am

Please post your forum's link.

So you want each navigation link to be a different color after you clicked it?


[HELP] Change Color Every Navigation Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by Almaftuchin April 13th 2017, 7:31 am

Almaftuchin
Almaftuchin
New Member

Male Posts : 6
Reputation : 2
Language : English
Location : Indonesia

http://www.almaftuch.in

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by Ritsu April 13th 2017, 12:58 pm

Go to ACP -> Display tab -> Templates section -> First option. Then find pages which you want: for example, index_body is a homepage and faq_dhtml is FAQ page. Add to the top of every subpage you want to change your menu color:
Code:
<style type="text/css">
  .is-sticky#headerbar-top {
  background: red;
  }
</style>
Save and publish. Of course you can change "red' to another, such as "lightsteelblue", "lightseagreen", "indianred" also #e5e7eb#ff0fff etc.
Ritsu
Ritsu
Forumember

Male Posts : 63
Reputation : 7
Language : Polish, English
Location : Poland

http://lolirock.forumpolish.com

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by Draxion April 13th 2017, 5:07 pm

Hi there,

When you say the 'navigation', are you referring to the navbar when it comes down after scrolling? Or can you be more specific?
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by Almaftuchin April 13th 2017, 10:06 pm

how to make it using javascript with function address or link detected?
for example if in address bar open "forum.com/member" then the navigation color is blue, then if the address bar "forum.com/login" then the navigation color is green, etc?
are you understand my question?
Almaftuchin
Almaftuchin
New Member

Male Posts : 6
Reputation : 2
Language : English
Location : Indonesia

http://www.almaftuch.in

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by Draxion April 14th 2017, 1:55 am

I understand what you are wanting, but I don't don't understand when you are referring to with the 'navigation' since that could mean a few things on your forum. That's why I asked could you be more specific about what you are trying to color after visiting a link. What is the 'navigation'?
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by Almaftuchin April 14th 2017, 8:25 am

bump
Almaftuchin
Almaftuchin
New Member

Male Posts : 6
Reputation : 2
Language : English
Location : Indonesia

http://www.almaftuch.in

Back to top Go down

[HELP] Change Color Every Navigation Empty Re: [HELP] Change Color Every Navigation

Post by Draxion April 14th 2017, 8:30 am

Dude, I know the JavaScript code you are seeking. I just don't understand what you want to color is all since the word 'navigation' can mean a few things.
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum