Skip Navigation

[Resolved] Change H1 and meta title

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to change title using wpseo_title hook when using SEO plugin

Solution:
To override the title value you should use hook wpseo_title
=> http://hookr.io/filters/wpseo_title/

you can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/change-h1-and-meta-title/#post-626071

Relevant Documentation:

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by Minesh 6 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#625614

Hi!
I am writing about improving the H1 tags and the meta title.
The case grew from this thread:
https://toolset.com/forums/topic/automatically-display-categories-their-sub-categories-and-pages/

H1 and meta title in all categories is "Category" and on product listing page is "Listing page".
So it is the name of the page displaying the view.

I wonder if there is any way to change H1 and meta title into a name from taxonomy.
This not only matters to Google,
but also for the client browsing the website.
Thanks to these names, he will get a better idea of where he is, which pages he looks at.

Maybe I should make a separate template for this page and remove the default H1, and insert H1 with some code?
But that would solve the problem with H1, and what about the title meta?

#625626

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I wonder if there is any way to change H1 and meta title into a name from taxonomy.
==> Do you mean the <h1> added to loop output section of taxonomy view?

#625634

Yes, somewhere in the Loop Editor.
But overall, it does not matter what the way it would be. Important is that it should works 🙂

#625635

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry but I still didnt get your query. Could you please explain me by example what you are looking for and where?

#625643

OK, sure, please look at our last discussion, there I wrote a domain address in private form.
https://toolset.com/forums/topic/automatically-display-categories-their-sub-categories-and-pages/

If you will take address:
hidden link

You'll see this problem with H1 and meta title.

I hope I have explained enough 🙂

#625651

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

No - still I'm not getting idea what you want to do. Could you please share few screenshot with explanation. Maybe this is really small issue but I'm just not getting the understanding correct.

Do you mean that the page title "Category" - you want to change it to current selected taxonomy title?

#625668

"Do you mean that the page title "Category" - you want to change it to current selected taxonomy title?"

Yes, exactly that I need! 🙂
And meta title from selected taxonomy also.

#626071

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

ahh OK - there in no such native way to do that but you can achieve this by little bit of custom programming. Where you should get the current displaying category id from the URL param and update the title value accordingly.

I see you are using SEO plugin - so to override the title value you should use hook wpseo_title
=> hidden link