CMS Development

gsantos1
Contributor

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:

 

Screenshot 2022-09-21 at 11-10-27 Search results.png

 

After adding the brand name to the <title>:

 

Screenshot 2022-09-21 at 11-15-23 Search results.png

 

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>?

0 Upvotes
1 Accepted solution
BarryGrennan
Solution
Guide

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


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact

 

 

View solution in original post

2 Replies 2
BarryGrennan
Solution
Guide

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


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact

 

 

gsantos1
Contributor

Add brand name to Page Title without change on site search results

SOLVE

Hi @BarryGrennan 

 

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.

 

Cheers!

0 Upvotes