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

Alternating Primary Color for Header Dependening On Current Page

  • September 30, 2024
  • 3 replies
  • 36 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 ●●●●●●●●
  • 654 replies
  • October 1, 2024

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
  • 1 reply
  • October 1, 2024

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 ●●●●●●●●
  • 654 replies
  • October 1, 2024

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

In the HTML view of question text.