[Support request] tag showing in header since removing Yoast

Home Forums Support [Support request] tag showing in header since removing Yoast

Home Forums Support tag showing in header since removing Yoast

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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?

    #1458496
    David
    Staff
    Customer Support

    Hi there,

    try adding this PHP Snippet:

    remove_action( 'wp_head', '_wp_render_title_tag', 1 );

    https://docs.generatepress.com/article/adding-php/

    #1458654
    Helen

    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

    #1458662
    David
    Staff
    Customer Support

    Not 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.

    #1458679
    Helen

    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

    #1459092
    David
    Staff
    Customer Support

    GP 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.

    #1460155
    Helen

    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,
    Helen

    #1460294
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Yes, we use the standard title-tag method for outputting the title.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.