- This topic has 7 replies, 3 voices, and was last updated 1 year, 9 months ago by
Tom.
-
AuthorPosts
-
September 25, 2020 at 7:10 am #1458452
Helen
Hi,
We have just swapped from using Yoast SEO to WPSSO with schema mark-up.
All the meta from WPSSO is now showing on page but a <title> tag has appeared in the Header which was not there when yoast was installed.
It is made up of the page title and the company name. Is this a default in your theme? If so how can we remove that please?
September 25, 2020 at 7:42 am #1458496David
StaffCustomer SupportHi there,
try adding this PHP Snippet:
remove_action( 'wp_head', '_wp_render_title_tag', 1 );
https://docs.generatepress.com/article/adding-php/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 25, 2020 at 7:52 am #1458654Helen
Hi David,
Thank you so much for that.
The pages are now showing just the URL in the browser tab, rather than the specified <title> tag from the SEO meta on the page.
Have you guys worked with WPSSO schema mark-up plugin before? I am not sure how we get their title to take priority on the page.
Any suggestions?
Helen
September 25, 2020 at 7:57 am #1458662David
StaffCustomer SupportNot sure if anything has changed by this topic says they do not alter or add the <title> tag
https://wordpress.org/support/topic/modifies-the-meta-title-of-the-posts/
GP is using the core WP function to output it – so i am sure they should be able to assist with modifying that.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 25, 2020 at 8:05 am #1458679Helen
David,
Is it then possible to ask the theme to look at their ‘default title’ and use that as the title tag?
Would that solve the problem and what code do I need to add to the header.php?
H
September 25, 2020 at 1:00 pm #1459092David
StaffCustomer SupportGP uses the core WP function for displaying the Title tag.
It can be changed using this filter:https://developer.wordpress.org/reference/functions/wp_title/
WPSSO would need to provide the code required to get their title for that filter to be used.
If you can ask them what that is we can help with the filter.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 26, 2020 at 9:58 am #1460155Helen
Hi David,
Does your theme support the ‘title-tag’ feature of WordPress 4.4+?
Finding a work around and may have found a solution.
Thanks,
HelenSeptember 26, 2020 at 1:30 pm #1460294Tom
Lead DeveloperLead DeveloperHi there,
Yes, we use the standard
title-tag
method for outputting the title.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.