Can I remove the site logo in the navigation bar?

Is there any way to remove the site logo from the Confluence navigation bar, and just have the site title, on its own?

3 answers

1 accepted

0 votes
Answer accepted
Davin Studer Community Champion Jan 05, 2014

Here is the CSS.

.aui-header-logo.aui-header-logo-custom img{display:none;}

Thank you - unfortunately there's still a bit of padding to the left of the title (that there isn't on the right of the title). Is there a way to get rid of that? I couldn't do by adding padding-left, margin-left or border-left: 0px to that CSS.

Davin Studer Community Champion Jan 06, 2014

The padding in on the <a> element. So you would do this ...

.aui-header-logo.aui-header-logo-custom a{padding: 0px 10px 0px 0px;}

The order of the padding is this css is top, right, bottom, left. So, this would leave the 10px padding on the rigt side but 0 out the padding on the <a> element on the left side. By default the left and right have 10px. If you zero out the right side it doesn't look right ... at least in my environment. The spacing becomes uneven between the header items.

Hi Beth,

There is but it will take a bit of css customization on your end. How I accomplished this is to turn on the Show logo and title option in Confluence Admin > Site Logo page.

Now I have the site logo and the site title showing in the global nav bar. I opened up the developer console in Chrome and found the element responsible for the header logo and site title section. Since we're trying to remove the logo and leave the title - and still have this clickable to take us to the Confluence root page, I removed the src location for the img and also removed the alt text value so that effectively nothing shows for the logo, but the title remains.

Here is the respective element after modification:

&lt;div class="aui-header-primary"&gt;&lt;h1 id="logo" class="aui-header-logo aui-header-logo-custom" style=""&gt;&lt;a href="/confluence/"&gt;&lt;img src="" alt="" data-aui-responsive-header-index="0"&gt;&lt;span class="aui-header-logo-text"&gt;Confluence&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;&lt;ul class="aui-nav" style="width: auto;"&gt;

You can see that the img src and alt properties are empty sets. This accomplishes what you're looking for I believe. You'll need to write that up as a css stylesheet rule and put that in the global stylesheet for confluence at Confluence Admin > Stylesheet.

Hope this helps.

Are you using OnDemand or the standalone version of Confluence? If the standalone, then you can edit the decorator templates and remove the code yourself.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

430 views 2 13
Read article

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