Alternating Primary Color for Header Dependening On Current Page | Experience Community
Skip to main content
Question

Alternating Primary Color for Header Dependening On Current Page

  • Sep 30, 2024 2:07 PM UTC
  • 3 replies
  • 64 views

Forum|alt.badge.img+1

Is it possible to have the header’s primary color vary depending on the current page the user is on?

For example, on page 1 the header could be red, on page 2 the header could be blue, and so on.

3 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • Oct 1, 2024 3:14 PM UTC

One of the way is to use below CSS in one of the question HTML of the page:

<style>

.Skin #Header{
color:red;
}

</style>

 


Forum|alt.badge.img+1
  • Author
  • Oct 1, 2024 3:59 PM UTC

Awesome, thanks! Where I would inesrt the CSS? Would it be underneath the page’s javascript?


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • Oct 1, 2024 5:52 PM UTC

Awesome, thanks! Where I would inesrt the CSS? Would it be underneath the page’s javascript?

In the HTML view of question text.