I am wanting to add a header and footer to multiple pages within a Space. Is a macro capable of adding the header and footer to to all the pages in the Space at one time?
Hi @Lager , Welcome to the community!
In Confluence Cloud, macros do not automatically apply headers and footers across all pages in a space.
However, here are a couple of approaches that can help:
Template-Based Solution: You can create a page template that includes the header and footer content as reusable elements. Users can apply this template when creating new pages, ensuring consistency across the space.
Include Page Macro: For existing pages, you can create separate header and footer pages, then use the Include Page macro on each page where you want the header and footer. This allows you to centrally update the header/footer content on the included pages, which will then automatically reflect across all pages using the macro.
Space Stylesheet (for header and footer styling): If you have Confluence Admin permissions, you could apply custom CSS via the Space Stylesheet feature (if available on your plan). This method allows you to add styling elements like headers and footers to all pages within a space, but it requires some CSS knowledge and may not work on all Confluence Cloud plans, as custom CSS is limited on certain tiers.
Hi @Lager and welcome to the Community.
If you want to add smth to multiple EXISTING pages, this might be possible programmatically via API (there was a thread here in which someone was adding one element to multiple pages at once via API).
If you're getting started, templates are the way to go.
Other than that, you will have to look at theme apps (Spacecraft, Aura, Refined) that provide a customizable skin over your Confluence content or go big with apps like Scroll Viewport that are, while being Confluence apps, can make your content Confluence independent (domain, SSO, etc.).
This is my company documentation our site built in Viewport with customized CSS and JS.
Hi @Manoj Kumar Gangwar - I think CSS options on Cloud are limited to PDF exports.
Full space CSS is DC only.
https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html
Thank you for your help.
It is good to know there is a possibility to be able to add an element to multiple pages via the API. This is one of the solutions I will be exploring.
I think the Include Page Macro approach would be the most apt solution for what I am trying to do. Thanks
@Lager I added a footer to each page using Space settings > Look and feel > Page layout. There is a spot to add a header and a footer.
At the top of the page, it says:
Customize the look of all pages in Confluence. Use wiki markup to add text, links, macros and images (from the web or attached to a page in the space).
I can't find a page that describes this tab, but there is a link on the page to what kind of wiki markup you can add. That opens in the right pane of the page; I think this is the equivalent page: https://support.atlassian.com/confluence-cloud/docs/insert-confluence-wiki-markup/
@Kristian Klima Is Aura a theme app?
It looks like you're new here. Sign in or register to get started.