Changing link on navbar logo

Open to all! Ask other shopowners for help.
Post Reply
User avatar
drtom
Member
Posts: 49
Joined: Sat May 24, 2025 3:59 am
Phoenix Version: v1.1.0.2
Has thanked: 21 times
Been thanked: 3 times

Changing link on navbar logo

Post by drtom »

Hey Folks,

I'm down to just a few annoying details I've not been able to solve on my own and seek your help.

It makes no sense to me that the link on the navbar logo should be self referencing. My shop will be a page on my already existing website, so I'd like to have the logo link to the website's index page.

Seems easy enough except that I cannot find the file I need to edit.


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Changing link on navbar logo

Post by heatherbell »

BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 30 times

Re: Changing link on navbar logo

Post by BrockleyJohn »

In core, the navbar logo links to the same place as the Catalog link in the breadcrumb, i.e. index.php the top of the shop. It's only self-referencing if you're at the top of the shop!

It may that some people wanting to navigate around the shop on the logo will exit into the rest of your site, but if it makes sense for you....

To change this behaviour, don't edit the original but override it in your template.
Copy
catalog/includes/modules/navbar/templates/tpl_nb_brand.php
into your active template which may be "override"
catalog/templates/?override?/includes/modules/navbar/tpl_nb_brand.php

and change the link in the template.

If it doesn't make any difference, check that the paths match exactly (the template copy doesn't have a "templates" directory at the lowest level)

Editing files in core will hinder you from keeping up with new releases and is no longer necessary.
User avatar
drtom
Member
Posts: 49
Joined: Sat May 24, 2025 3:59 am
Phoenix Version: v1.1.0.2
Has thanked: 21 times
Been thanked: 3 times

Re: Changing link on navbar logo

Post by drtom »

BrockleyJohn wrote: Sun Jul 27, 2025 6:08 amIn core, the navbar logo links to the same place as the Catalog link in the breadcrumb, i.e. index.php the top of the shop. It's only self-referencing if you're at the top of the shop!
Yes
BrockleyJohn wrote: Sun Jul 27, 2025 6:08 amIt may that some people wanting to navigate around the shop on the logo will exit into the rest of your site, but if it makes sense for you....
There will be some people that reach the shop via one of the other pages on my website and wish to return. Most of my business is doing repairs, so I prefer to make that easy for them.

Actually, I suspect that in the beginning most traffic to the shop won't be direct.

Thank you so much for your guidance. Worked like a charm. :D


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply