How To Remove Yoast SEO Open Graph Site Name Property From Your Website

Removing Yoast SEO Open Graph Site Name Property

Most of the WordPress websites today, use WordPress SEO by Yoast to optimize the website content for search engines. It is a great tool which helps you in building rich, search-friendly content via Yoast SEO meta-box on per page per post basis. After creating the content, you can review it from SEO point of view and fine tune it then and there.

As much as content creation is crucial, sharing it over social media is what makes it viral. Social media continues to be a major contributor for most of the web’s traffic. WordPress SEO by Yoast efficiently harnesses the power of social media and its impact on driving traffic on your site by adding Open Graph meta tags to your site.

Though most of the optimization is effectively handled by the plugin by adding all the necessary and relevant Open Graph tags to your site’s header; in some cases you may not actually need all of the tags, if you are strategically optimizing the site content for search engines.

For example, the og:site_name property is only required to be added if your site is a part of larger network and is not always required on your website. You can add the following code to your theme’s functions.php to remove the site name property from the Open Graph tag added by Yoast SEO plugin.

add_filter( 'wpseo_opengraph_site_name', 'bt_remove_og_sitename' );

function bt_remove_og_sitename( $og_sitename ) {
    return false;
Divi WordPress Theme