How to call Page Template in CSS


How can I call a Page Template in CSS in Confluence. I have created a page called 'Menu 2' in which I put simple html code to generate a top menu navigation bar. Now everytime I create a new Confluence page, I call this menu using {include:menu2}

My question is : how can I call this template page in css, so it won't be necessary for me to put the {include:menu2} code evrytime I create a new Confluence Page?

thanks in advance for your help!

1 answer

Couldn't you just put your HTML code on every page by inserting it under Look&feel-->"custom HTML" ? As I understand you want your code being executed on evrey page or am I getting sth. wrong?

Cheers Christian

Hmmm the custom HTML will apply to the whole Confluence instance. I want it for a specific Space only.

How about creating a page template that you can reuse. Wouldn't be automatic though but still faster than using the include macro all the time...

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,775 views 26 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