The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

[HELP] Change Color Every Navigation

View previous topic View next topic Go down

[HELP] Change Color Every Navigation

Post by Almaftuchin on 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?
avatar
Almaftuchin
New Member

Posts : 5
Reputation : 1
Language : English

http://www.forumotion.com

Back to top Go down

Re: [HELP] Change Color Every Navigation

Post by SLGray on 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?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 38225
Reputation : 2574
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: [HELP] Change Color Every Navigation

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

avatar
Almaftuchin
New Member

Posts : 5
Reputation : 1
Language : English

http://www.forumotion.com

Back to top Go down

Re: [HELP] Change Color Every Navigation

Post by DSorcerer on 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.
avatar
DSorcerer
Forumember

Male Posts : 37
Reputation : 6
Language : Polish
Location : Poland. help

http://winx-rp.forumotion.pl

Back to top Go down

Re: [HELP] Change Color Every Navigation

Post by Draxion on 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?
avatar
Draxion
Helper
Helper

Male Posts : 973
Reputation : 146
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Re: [HELP] Change Color Every Navigation

Post by Almaftuchin on 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?
avatar
Almaftuchin
New Member

Posts : 5
Reputation : 1
Language : English

http://www.forumotion.com

Back to top Go down

Re: [HELP] Change Color Every Navigation

Post by Draxion on 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'?
avatar
Draxion
Helper
Helper

Male Posts : 973
Reputation : 146
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Re: [HELP] Change Color Every Navigation

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

bump
avatar
Almaftuchin
New Member

Posts : 5
Reputation : 1
Language : English

http://www.forumotion.com

Back to top Go down

Re: [HELP] Change Color Every Navigation

Post by Draxion on 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.
avatar
Draxion
Helper
Helper

Male Posts : 973
Reputation : 146
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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