Add brand name to Page Title without change on site search results
SOLVE
Hello community!
I'm working the header and meta for my new site on Hub CMS adding some dynamic variables to the <title>, and I noticed that any change to the <title> tag on the header also affects the page title of every result on our site search results page. So basically the Hubspot search bot gets the coded <title> tag instead of the real page title saved on the CMS page editor.
Now, I need to add the brand name to the <title>, but it makes all pages on the search results page to show the brand name on the page titles, which is unecessary since the search is inside the site.
Before the <title> change on the template:
After adding the brand name to the <title>:
Is there a way to force the Hubspot search bot to index the real page name, from the CMS page editor, instead of the page name edited on the template header <title>?
Add brand name to Page Title without change on site search results
SOLVE
I haven't looked into this much but the first thing I'd look at would be customizing the search results module. See how it's pulling in the page title and replace that.
Make sure you use your new custom search results module on your results page instead of the Hubspot default
Add brand name to Page Title without change on site search results
SOLVE
I haven't looked into this much but the first thing I'd look at would be customizing the search results module. See how it's pulling in the page title and replace that.
Make sure you use your new custom search results module on your results page instead of the Hubspot default
That's the only I managed to solve this, customizing the search modules.
I still not sure if letting the search bot index the brand as part of the page title is a good idea, but at least the search page and suggestions are now showing only the page title.