# Changing link for brand logo

**URL:** <https://forum.ghost.org/t/changing-link-for-brand-logo/49819>\
**Category:** Using Ghost\
**Created:** [August 27, 2024, 10:44am UTC](https://forum.ghost.org/t/changing-link-for-brand-logo/49819 "2024-08-27T10:44:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![al\_finsp](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/al_finsp/32/26567_2.png) [@al\_finsp](https://forum.ghost.org/u/al_finsp)\
**Post date:** [August 27, 2024, 10:44am UTC](https://forum.ghost.org/t/changing-link-for-brand-logo/49819/1 "2024-08-27T10:44:06Z")

</div>

Hi guys,

This is the site I need help with: [https://blog.finspector.ai/](https://blog.finspector.ai/)

I want the brand logo on the website to go to this URL:  
finspector.ai

I tried changing code on the theme, but now it put the domain before that and ends up going nowhere: [https://blog.finspector.ai/www.finspector.ai/](https://blog.finspector.ai/www.finspector.ai/)

This is what the code looks like in partials/navigation:

```auto
<header id="gh-navigation" class="gh-navigation is-{{#match navigationLayout "Logo on the left"}}left-logo{{else match navigationLayout "Stacked"}}stacked{{else}}middle-logo{{/match}}{{#match @custom.header_and_footer_color "Accent color"}} has-accent-color{{/match}} gh-outer">
    <div class="gh-navigation-inner gh-inner">

        <div class="gh-navigation-brand">
            <a class="gh-navigation-logo is-title" href="www.finspector.ai">
                {{#if @site.logo}}
                    <img src="{{@site.logo}}" alt="{{@site.title}}">
                {{else}}
                    {{@site.title}}
                {{/if}}
            </a>
            {{> "search-toggle"}}
            <button class="gh-burger gh-icon-button" aria-label="Menu">
                {{> "icons/burger"}}
                {{> "icons/close"}}
            </button>
        </div>

```

Any help would be much appreciated!

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [August 27, 2024, 12:38pm UTC](https://forum.ghost.org/t/changing-link-for-brand-logo/49819/2 "2024-08-27T12:38:17Z")

</div>

> [@al\_finsp](#):
>
> `href="www.finspector.ai"`

This needs to be `href="https://www.finspector.ai"`

---

<div class="post-metadata">

**Author:** ![al\_finsp](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/al_finsp/32/26567_2.png) [@al\_finsp](https://forum.ghost.org/u/al_finsp)\
**Post date:** [August 27, 2024, 12:41pm UTC](https://forum.ghost.org/t/changing-link-for-brand-logo/49819/3 "2024-08-27T12:41:38Z")

</div>

Hi Cathy!

I just tried that, same issue unfortunately. Any other ideas?

---

<div class="post-metadata">

**Author:** ![al\_finsp](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/al_finsp/32/26567_2.png) [@al\_finsp](https://forum.ghost.org/u/al_finsp)\
**Post date:** [August 27, 2024, 12:49pm UTC](https://forum.ghost.org/t/changing-link-for-brand-logo/49819/4 "2024-08-27T12:49:51Z")

</div>

Scratch that, it’s working!

Thanks a lot Cathy :)

---

<div class="post-metadata">

**Author:** ![indieseattle](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/indieseattle/32/38522_2.png) [@indieseattle](https://forum.ghost.org/u/indieseattle)\
**Post date:** [November 19, 2025, 12:22am UTC](https://forum.ghost.org/t/changing-link-for-brand-logo/49819/5 "2025-11-19T00:22:54Z")

</div>

This worked like a charm in the Casper theme. Simply added to code injection (header) – be sure to change it to your site’s URL.

Here’s the code to put inside opening and closing script tags (can’t seem to publish them here without it reverting to actual code):

document.addEventListener(‘DOMContentLoaded’, function() {  
var logoLink = document.querySelector(‘.gh-navigation-logo’);  
if (logoLink) {  
logoLink.href = ‘[https://yourwebsite.com/’](https://yourwebsite.com/%E2%80%99); // Replace with your desired URL  
}  
});
