Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

alesub on "[Plugin: WordPress SEO by Yoast] OpenGraph Issue when also using SEO with Root Relative URLs plugin"

$
0
0

In the file /wordpress-seo/frontend/class-opengraph.php, around line 134 look for the function called public function url(), replace it with this:

public function url() {
    $url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI'];
    echo "<meta property='og:url' content='" . $url . "'/>\n";
}

Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>