Applying a theme to site search page Edited

We are using the default theme as the site default but have many spaces with individual themes and colors.

For example the 'red space' is utilizing a red theme and top bar. However when a user is entering the site search (/dosearchsite.action) the top bar is back to the site default blue.

Is there any way to customize the theme based on the space theme the search is initiated from?


1 answer

1 accepted

0 vote

No.  The user is outside a space at this point, so the system has no context to know what the theme is.  It has to use the global theme.

Thanks Nic, that makes sense.

How about modifying the velocity template and add a group membership based condition?


#if ($userAccessor.hasMembership("target-group", $
#header .aui-header {
  background-image: linear-gradient(to right, #9E043E, #F05A00); }

Can't seem to find the correct template file...

That should work, as you'll have a group context for the user!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,352 views 25 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you