Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Custom JS scripting for Confluence Space


We want to inject custom JS script to help with some customizations for the space. We only want to inject this in a specific space .

Can you please let me know how this is possible?

I  know that there is HTML macro

Looks like HTML Macros require us to add script to every page manually. We are looking for a space wide method. 

Is there a way we can do this once but for the whole space ?





1 comment

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 28, 2023

You could do this by creating a new "theme" for Confluence, and embedding your JS in it.  If you then set a space to use that theme, your JS will be used on every page in the space (themes do not affect the admin pages for spaces, nor the global functions like the dashboard and search, but they do apply to every page in a space)

You could also amend the global header page, adding your script(s) so that they run on every page Confluence serves up.  If you need that to be space specific, you will need to encase it in an "if space = x" block to make sure it only runs in certain spaces.

Like Aron Gombas likes this


Log in or Sign up to comment
AUG Leaders

Atlassian Community Events