CMS Development

hkornilenko
Participant

SEO | How To Add Defualt Snippet to All Pages Meta Titles

SOLVE

I am looking to streamline all our company pages' meta titles.  I know with Yoast on WP you can create a default snippet for all meta titles (https://yoast.com/help/how-to-modify-default-snippet-templates-in-yoast-seo/).

 

Is there a way to do this within the HubSpot CMS? 

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

SEO | How To Add Defualt Snippet to All Pages Meta Titles

SOLVE

hello @hkornilenko !

The answer to this depends on how you built the page template

If you built it through the Design Manager using the drag and drop method, the only way that you could change the page title would be via some javascript.

But, if you built your template as a coded template either in the design manager, preferably, locally, then you should be able to create a template of sorts.  

So, for example using the page title and site title, you could do something like this 

<title>{{ page_meta.name }} |  Brand CO</title>
This would print the page title set in the page settings followed by a | and my totally amazing company name "Brand CO"
 
For a full list of possible variables you can use, please reference this doc
 
Hope this helps!
d

View solution in original post

0 Upvotes
3 Replies 3
ETanner
Member

SEO | How To Add Defualt Snippet to All Pages Meta Titles

SOLVE

To add a default snippet to all pages' meta titles for SEO purposes, you typically need to make changes to your website's HTML or use a Content Management System (CMS) if you have one. Here's a basic step-by-step guide:

  1. Access Your Website's Code: If you have direct access to your website's code, you can manually edit the HTML files. Alternatively, if you're using a CMS like WordPress, you can usually achieve this through a plugin or theme settings.

  2. Locate the Head Section: Within your HTML files, find the <head> section. This is where you'll place the default snippet that you want to add to all pages' meta titles.

  3. Edit the Title Tag: The meta title is usually defined within a <title> tag. To add a default snippet, you can modify this tag like this:

    htmlCopy code
    <title>Your Default Snippet - Page-Specific Title</title>

    Here, "Your Default Snippet" is the text you want to appear as a prefix for all pages, and "Page-Specific Title" should be replaced with the actual title of each specific page. You can use dynamic variables if you have a CMS that supports this to automatically insert the page-specific title.

  4. Use CMS Features: If you're using a CMS like WordPress, you might have SEO plugins or theme settings that allow you to set a default snippet for meta titles. check the documentation or settings of your specific CMS and SEO tools.

  5. Testing and Validation: After making changes, it's crucial to test your website to ensure that the default snippet is appearing correctly on all pages' meta titles. Also, validate your HTML to make sure there are no errors.

  6. SEO Best Practices: While adding default snippets can be helpful, remember to follow SEO best practices. Ensure that your meta titles are unique, descriptive, and relevant to each page's content. Avoid keyword stuffing and make sure your titles are user-friendly.

  7. Monitor and Update: SEO is an ongoing process. Regularly monitor the performance of your website in search engine rankings and update your meta titles, including the default snippet, as needed to improve SEO results.

By following these steps, you can add a default snippet to all pages' meta titles, which can help maintain consistency and improve SEO optimization across your website.

0 Upvotes
hkornilenko
Participant

SEO | How To Add Defualt Snippet to All Pages Meta Titles

SOLVE

Thank you very much!!! Very helpful!

0 Upvotes
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

SEO | How To Add Defualt Snippet to All Pages Meta Titles

SOLVE

hello @hkornilenko !

The answer to this depends on how you built the page template

If you built it through the Design Manager using the drag and drop method, the only way that you could change the page title would be via some javascript.

But, if you built your template as a coded template either in the design manager, preferably, locally, then you should be able to create a template of sorts.  

So, for example using the page title and site title, you could do something like this 

<title>{{ page_meta.name }} |  Brand CO</title>
This would print the page title set in the page settings followed by a | and my totally amazing company name "Brand CO"
 
For a full list of possible variables you can use, please reference this doc
 
Hope this helps!
d
0 Upvotes