Is there anyway to disable or remove specific meta from posts

#476111
  • Resolved Victor Rayne
    Rank Math free

    My posts keeps showing some meta’s i don’t like and i want it removed. Is there anyway to do this.
    NOTE: i removed there values before pasting this.

    <meta property=”og:site_name” content=”..” />
    <meta property=”og:updated_time” content=”2022-08-07T18:08:15+00:00″ />
    <meta property=”article:published_time” content=”2021-12-03T00:40:22+00:00″ />
    <meta property=”article:modified_time” content=”2022-08-07T18:08:15+00:00″ />
    <meta name=”twitter:card” content=”summary_large_image” />
    <meta name=”twitter:title” content=”….” />
    <meta name=”twitter:description” content=”…” />
    <meta name=”twitter:label1″ content=”Written by” />
    <meta name=”twitter:data1″ content=”” />
    <meta name=”twitter:label2″ content=”Time to read” />
    <meta name=”twitter:data2″ content=”2 minutes” />

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

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    Kindly refer to this code and insert it into your theme’s functions.php file.

    add_action( 'rank_math/head', function() {
    	remove_all_actions( 'rank_math/opengraph/facebook' );
    	remove_all_actions( 'rank_math/opengraph/twitter' );
    });

    You may refer to this guide on other options of applying the code:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Victor Rayne
    Rank Math free

    Thanks for your help. The Twitter part didn’t remove completely, there’s still Twitter:label && data

    Victor Rayne
    Rank Math free


    please in your next update, can you give users the opportunity to disable, social graph(open grapgh/twitter) and schema ld+json… I don’t want them in all pages, i dont even want it at all. if theres a code to remove them, please help me out.

    Hello,

    To remove that, please head over to your WordPress Dashboard > Rank Math > Titles & Meta > [select your Post Types:] and disable the option “Slack Enhanced Sharing”.

    slack

    Hope that helps.

    Thank you.

    Victor Rayne
    Rank Math free

    Thanks

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Is there anyway to disable or remove specific meta from posts’ is closed to new replies.