How to add a link to the Logo in the webpage header?
SOLVE
When I preview my website and click on the Logo in the upper left hand corner, it takes me to a 404 page error. I can't seem to find the setting that allows me to change that.
When that link is clicked on, I want to be taken to the home page.
How do I link the Logo in the header to the home page?
However, if you are not planning on making further code edits and that's the only thing that needs to be adjusted, it may not be worth it and I would make it plan B.
If your timeline allows, you could try reaching out to the creators of the theme and let them know about the issue. There is a chance they might roll out a theme update to patch it up.
✔️ Did this post help answer your query? Help the community by marking it as a solution.
How to add a link to the Logo in the webpage header?
SOLVE
It looks like there might an issue with the theme - I am guessing the template or module is not pulling in that field from Branding settings correctly.
If you are able to get to the module / template code and provide that, I could take a look (it might be in /partials/header.html) .
Otherwise, one more option could be trying the "Override default logo":
✔️ Did this post help answer your query? Help the community by marking it as a solution.
How to add a link to the Logo in the webpage header?
SOLVE
I think I figured out what is acutally going on.
The theme is likely using HubSpot's "Logo" field in it's header module. Which worked fine in the past but it looks like that field needs to be updated because it originally pulled from the Branding settings in Website settings, which no longer exists in some portals (as is in your case), as of February 2024.
So the "override" options I suggested won't actually work because that only lets you change the image, but not the link.
To immediately solve the issue, you would need to create a child theme and clone that module into the child theme and change the HubL code to point to the settings in Brand Kit.
i.e.
{% logo
...
src="{{brand_settings.logos[0].src}}"
...
link="{{ brand_settings.logos[0].link }}"
...
%}
✔️ Did this post help answer your query? Help the community by marking it as a solution.
Feb 16, 20246:53 AM - edited Feb 16, 20246:54 AM
Participant
How to add a link to the Logo in the webpage header?
SOLVE
Thanks so much for working on this! I am grateful for how much time you put into figuring this out and suggesting a solution.
I have no background in coding so I have no idea how to create a child andthen follow the steps that you kindly described. Is there a step by step guilde to help?
However, if you are not planning on making further code edits and that's the only thing that needs to be adjusted, it may not be worth it and I would make it plan B.
If your timeline allows, you could try reaching out to the creators of the theme and let them know about the issue. There is a chance they might roll out a theme update to patch it up.
✔️ Did this post help answer your query? Help the community by marking it as a solution.