Page 1 of 1
Changing link on navbar logo
Posted: Sun Jul 27, 2025 3:57 am
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.
Re: Changing link on navbar logo
Posted: Sun Jul 27, 2025 5:48 am
by heatherbell
Re: Changing link on navbar logo
Posted: Sun Jul 27, 2025 6:08 am
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.
Re: Changing link on navbar logo
Posted: Sun Jul 27, 2025 4:11 pm
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.
