How to add Google AdSense at the bottom of the sidebar?

I want to add Google AdSence at the bottom of the sidebar.

Currenlty, I added Google AdSence at the bottom of page by using the Custom HTML menu in the Confluence administartion (LOOK AND FEEL->Custom HTML). 

In the LOOK AND FEEL, there is "Sidebar, header and footer" menu. At the Sidebar, I can add some text to display the text above the page tree in the sidebar. I want to add Google Adsence at the bottom of the page tree. 


How can I do this? 

When I used the RefinedWiki Theme for another side, I can easily to this. But I am using the Documentation Theme for this site. 



1 answer

0 vote
Ann Worley Atlassian Team Jun 26, 2017


My suggestion is to use a custom page tree in the sidebar and put Adsense beneath it - something like:


{pagetree:root=Page Name|startDepth=3|expandCollapseAll=true}
[<AdSense here>]

Please see the section "Add your own page tree to replace the default page tree..." on Configure the Sidebar.



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,927 views 27 12
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