Forums

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

How to get an alt-text on site logo

Henrik Mikkelsen
Contributor
April 15, 2021

Hi,

I need to set an alt-text on the site-logo (not the space-logo) in confluence 7.4.4

I'm using the Refined App - but the site logo stems from confluence own site logo and favicon settings.

Any help would be appreciated.

1 answer

1 accepted

0 votes
Answer accepted
Janette _Refined
Contributor
April 28, 2021

Hi,

 

It is possible to run javascript that would add the alt text on the site logo. This is of course quite a workaround but technically it is possible.

 

Best regards,

Janette [Refined]

Henrik Mikkelsen
Contributor
April 28, 2021

Thank you Janette,

Any ideas on how and where? 

Google has led me to: 

<script type="text/javascript">
AJS.toInit(function() {
AJS.$('.aui-header .aui-header-logo img').prop('alt', 'Site Logo');
});
</script>

I tried to put it in the header - but that didn't work.

Sorry for the follow-up question

Janette _Refined
Contributor
April 28, 2021

Hi,

Under Refined Configuration and Themes tab, there is an option to add HTML code where you can add the javascript. I would make use of jquery, both for making sure the code gets executed after page load and for targeting and modifying the elements.

I looked a little bit further into the functionality and I will raise an improvement suggestion to include the alt text in Refined. I can't make any promises that it gets implemented but I can post an update here if it is!  

 

Best regards,
Janette [Refined]

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.4.4
TAGS
atlassian, out of office, loom, confluence, async collaboration, meeting recaps, remote teamwork, team alignment, knowledge sharing, AI-powered notes, productivity tools, workforce continuity, teamwork collection

Put your meeting notes on autopilot with Loom + Confluence

AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.

Learn more
AUG Leaders

Atlassian Community Events