Add link in site branding logo

I want to change the link that connects with my site logo. But I don’t know how to do it. Please help me because it is for my school task. Thanks

Hello @beatrix,

You can try to do this with jQuery.

  1. Please install and activate Insert Headers and Footers plugin that will allow you to insert JavaScript (jQuery) code.

  2. Go to your DashboardSettingsInsert Headers and Footers → add the following code to Scripts in Header section, and click Save button:

<script type='text/javascript'>
    jQuery(document).ready(function(){
        jQuery('header#masthead div.site-branding > a.custom-logo-link').attr('href', 'https://example.com');
    });
</script>

Just replace https://example.com with desired link.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

@Roman: Could I add that code into Custom Java Script Plugin too?

Because I do not have the Insert Headers and Footers Plugin installed and it is out of time. No updates for more than 1 year. Risking my entire installation for one old plugin is not worth it.

Thank you.

Hello TomDoe,

You can try. But anyway, please remember about importance of regular full site backups. That can help you to minimize risks.

Kind Regards, Roman.