It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Display confluence page content only

Mario Günter May 11, 2015

Hi there,


is it possible to display the content of a page ONLY.

That means no header, no sidebar and that stuff. Just the page content is need.


Why would you do this?

I'm trying to implement a help popup where the content is stored in confluence.


3 answers

1 accepted

3 votes
Answer accepted
Davin Studer Community Leader May 11, 2015 • edited Jun 08, 2018

Yep, you sure can. Create a user macro with the below code. Then put the user macro on the page that you want to only show the content on. Finally access the page and add ?frameable=true to the end of the url.

## Developed by: Davin Studer
## Date created: 04/02/2015
## @noparams
#if($req.getParameter('frameable') == "true")
#header, #footer, .ia-splitter .ia-splitter-left {display: none !important;}
#main {margin-left: 0 !important; border: 0 !important;}
body {background: #FFFFFF !important;}

Update 6/8/2018: fixed html encoding
Mario Günter May 12, 2015

Hi Davin! You're my HERO! Thank you so muche! Very appreciated! Cheers,Mario

BłażejO Jun 22, 2016

Awesome! Simple and highly functional! Thanks!

Robert Metcalf Oct 18, 2016

I want a solution that will work on a lot of pages at once without inserting into every one. I am embedding using an iframe.

Davin Studer Community Leader Oct 18, 2016

You can do that with the above user macro as well. Just create the user macro and then add the macro to the page decorator in Confluence Admin -> Layouts. Probably the Page Layout decorator would be the one you would put it into. Then it will be added to every page and every page could be iframed.

Mariia Padalko Oct 28, 2016

I have some problem with a calendar in this case. It disappears on page by url  with ?frameable=true. How can I fix it. Thanks.

Daniel Corrigan Feb 13, 2018 • edited

removed comment

Eliot Cole Apr 25, 2018 • edited

Afternoon! Is there a way to do this without creating a macro? (user macros are disabled - or I can't find out how to make them - here)

I've tried using CSS, but it didn't work:

.theme-header { display:none !important; }

Whoops. Looks like I'm looking at the theme header. Which is what I want to remove, just for one page, the front page. I have a nav bar in it which is pointless on the front page, and that's large anyway.

I'll keep searching!



Sorted it.

I had my IDs and classes mixed up, so ... err ... I'll get mi' coat:

#theme-header { display:none !important; }

Boom. Single page. Theme header removed.

Paul OBrien Jun 07, 2018 • edited

This is exactly what i am after but i cant make it work.. sorry, new to confluence macros.. so i have added a user macro and pasted in the code above.

When i add ?frameable=true to my URL, where the Macro is on the page, i see the below but i can still see nav.  Is there a setting on the macro i need to set so this code is 'rendered' in the page output?  ive tried different options to no avail.. any help appreciated


Davin Studer Community Leader Jun 08, 2018

This was converted from the old Atlassian Answers site. When they did that the encoding of code blocks got borked a bit. I'll fix the above code.

0 votes
Paul OBrien Jun 07, 2018 • edited

posted in wrong place, and cant delete?

0 votes
Michael Picher Feb 27, 2019

Does this not work if you're using a theme?




Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

77 views 3 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you