How to remove meta tags

#998592
  • Resolved clbaft
    Rank Math free

    Hi, my website has some meta tags from Rank Math that I don’t know how to remove.

    Particularly these ones:
    <meta name=”twitter:label1″ content=”Written by”>
    <meta name=”twitter:data1″ content=”my full email address“>
    etc etc

    someone used the twitter:data1 value to email me, which is obviously not ideal. I’ve changed my username for now, but I want to remove that completely.

    I tried to look in Titles & Meta > Posts for Slack sharing as I saw in another post, but there’s nothing in there like that. I looked everywhere and couldn’t find the setting. Please help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    We apologize for the issue you are facing with the unwanted meta tags on your website. To remove specific meta tags generated by Rank Math, you can follow these steps:

    1. Disable Twitter Meta Tags: If you want to disable all Twitter meta tags generated by Rank Math, you can do this by adding a code snippet to your theme’s rank-math.php file. Here’s how:

      • Navigate to WordPress DashboardAppearanceTheme File Editor.
      • Add the following code snippet:
        function remove_rank_math_twitter_meta_tags() {
         remove_action( 'rank_math/head', 'rank_math_twitter_meta_tags' );
        }
        add_action( 'wp_head', 'remove_rank_math_twitter_meta_tags', 1 );
      • Click the Update File button to save the changes.
    2. Check for Other Plugins or Theme Settings: Sometimes, other plugins or your theme might also add meta tags. If the above method does not work, try disabling other plugins one by one to see if any of them are responsible for adding those tags.

    3. Contact Support: If you are still unable to remove the meta tags after trying the above steps, please reply to this ticket with your website URL, and a human agent from our support team will assist you further.

    Thank you for raising this concern, and we hope this helps resolve the issue!

    Sources:
    How to Disable All Rank Math Generated SEO Tags » Rank Math

    clbaft
    Rank Math free

    The instructions for a complex/breaking task are quite unclear and not detailed enough. I can’t clarify because when I type part of the code I need to question I got blocked by Cloudflare lol. Anyway, it’s not working, even if I include rank-math.php in my child theme’s functions (which the bot didn’t tell me to do) and add the language opening tag on the snippet (which I presume should also do if the file is empty)

    It’s definitely Rank math as the tags are between the opening and closing comments in the HTML

    Hello,

    You can simply remove those meta tags without using the code/filter by disabling this option on your WordPress dashboard > Rank Math > Titles & Meta > Posts

    post

    Please note that some options are only available when you enable the Advanced Mode in Rank Math. If it’s not showing, you must have chosen to use Easy Mode.

    You can follow the steps in this link to switch to Advanced Mode:
    https://rankmath.com/kb/advanced-mode/

    Looking forward to helping you.

    clbaft
    Rank Math free

    I already wrote a reply but for some reason it didn’t post. After ignoring the bot – whose reply simply didn’t work – I found the setting by accident from searching for different things on Google.

    Putting the admin’s username in the meta *by default* is nonsensical to me. Then it’s hidden under a setting name that is unclear/ difficult to find: why would a user think ‘Slack Enhanced Sharing’ is where to find ‘twitter:data1’ meta? AND it’s hidden again by default for regular users under Advanced Settings, but that’s not clearly indicated in your documentation either. I think you should really consider your user journey here, because this has made me want to switch back to Yoast tbh.

    Hello,

    We apologize for the inconvenience. The Slack Enhanced Sharing is required to share your URLs with Slack, which uses your Author name.

    You can read more about this option here: https://rankmath.com/kb/slack-enhanced-sharing/

    Regarding the Advanced mode, we mentioned this in our Titles & Meta settings guideline:

    With that said, we are constantly working on our features and trying to improve them for our users, and your feedback is highly valued.

    We will share your concern with the appropriate team and will make every effort to improve this further in the future.

    Please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘How to remove meta tags’ is closed to new replies.