How to get an alt-text on site logo

Henrik Mikkelsen 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 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 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 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
AUG Leaders

Atlassian Community Events