Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I remove the site logo in the navigation bar?

Beth Aitman
Contributor
January 2, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2014

Here is the CSS.

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

Beth Aitman
Contributor
January 5, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 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.

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2014

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.

0 votes
Ryan Goodwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2014

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events