• Resolved Valdinia

    (@valdinia)


    I’m using Elementor PRO Version 3.2.0 adn YOAST SEO Version 16.0.1
    Following these instructions https://labs.thecreatology.com/squirrel/remove-wp-yoast-seo-meta-tags-using-wordpress-filter.html I successfully managed to remove the metadescription, the opengraph tags etc from the single product page for specific product categories

    Now I try to remove the <title> tag from the Single Product Page

    I tried with each of the following filters:
    – add_filter( ‘wpseo_title’, ‘cde_remove_yoast_meta’ );
    – add_filter( ‘wpseo_title’, ‘__return_false’ );
    – add_action( ‘wpseo_frontend_presenters’, ‘cde_remove_title_presenter’ );
    None of them works.
    The title tag is still there:
    <!– This site is optimized with the Yoast SEO plugin v16.0.1 – https://yoast.com/wordpress/plugins/seo/ –>
    <title>Lorem Ipsum 1 – Research Web Store</title>

    So how could I remove the title tag?

    • This topic was modified 3 years, 8 months ago by Valdinia.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rumejan Barbarona

    (@onlyincebu)

    Hello @valdinia!

    We can confirm that the filter you’re using to remove the title tag is correct. Where did you add the filter? Also, after adding the filter, you may need to clear your cache from your caching plugins, server, CDN like Cloudflare, and your browser.

    Thread Starter Valdinia

    (@valdinia)

    The filter is added in functions.php of the child theme. (OceanWP).
    Server and browser cache cleared, CDN we are not using.

    Hi @valdinia!

    The filter: add_filter( ‘wpseo_title’, ‘__return_false’ ); only removes what has been entered into the SEO Title of the post/page.

    It does not actually remove the <title> tags, it only removes the data Yoast generates into them.

    If you remove the Yoast SEO Title data, the <title> tag then defaults to how the theme is outputting the titles which can be: %%postname%% %%sep%% %%sitename%%.

    If you want to actually remove the title tag, we suggest contacting the theme developers for more information as the theme controls those tags.

    Hi @valdinia,

    This thread has been marked as resolved due to a lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing the title tag not working’ is closed to new replies.