Edit blog post meta title tag


#1

It appears that the meta title tag cannot be changed for each blog post.

I have several blog posts that have long titles, where I need to change the meta titles to be shorter without changing the real blog title, as well as add some SEO to those.

How can this be done? Does anyone know?


#2

You can edit the meta description at the bottom of the blog post editor.

Regards,
seo expert


#3

Meta title, not meta description


#4

Hi @philipstorey,

The meta title is automatically set to the blog post title. You can customize this from the settings tab when editing the blog post in HubSpot.


#5

Really? If that is the case do you mind sharing a screenshot of where that is on the page? The reason I ask, is because this is something that I raised at developer Day in November in Dublin and the only solution that I have been given so far requires some hand coding


#6

Hi @philipstorey,

After reading my last post, I can see how it sounds like I was saying you could customize how the meta title is set. Apologies for that; the meta title is set to the blog post title, and that functionality cannot be changed. I meant that the blog post title is changed from the settings tab.

What you might consider doing it customizing your blog template using HubL to create a ‘public’ blog post title that is used for your actual blog post titles. You can then use the default title field for SEO purposes. It might look something like this:

{% text "blog_display_title" label='Set a unique post display title', export_to_template_context = True %}
{% if not content.widgets.blog_display_title.body.value %}
    <h1><a href="{{ content.absolute_url }}" id="hubspot-name" class="link hubspot-editable" data-hubspot-form-id="name" data-hubspot-name="Blog Title">{{ content.name }}</a></h1>
{% else %}
    <h1><a href="{{ content.absolute_url }}">{{ content.widgets.blog_display_title.body.value }}</a></h1>
{% endif %} 

Change browser title for a blog post
#7

Great that there is a solution for this but it is really a bit of a hack. Strange this functionality is not in HubSpot COS already when it really is a basic and essential feature. Be keen to hear how other people have handled this and / or general thoughts on this?