How to set up og: type website?

#361457
  • Resolved Ricardo Corai
    Rank Math business

    Hi!
    I need to replace:
    <meta property="og:type" content="article" />
    To:
    <meta property="og:type" content="website" />
    How can I do it?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math.

    You can add this filter in the theme’s functions.php file to change the og:type:

    add_filter( 'rank_math/opengraph/type', function( $type ) {
    	$type = 'website';
    	return $type;
    }); 

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    Hope that helps.

    Don’t hesitate to get in touch if you have any other questions.

    It works perfect. Thanks!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.