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

Smrth on "[Plugin: WordPress SEO by Yoast] Compatibility with qTranslate"

$
0
0

I had trouble only with Page title in <head>. All languages were together. Couldn't find the solution so i dropped to wpseo core files. In frontend/class-frontend.php line 308 goes like this:

} else if ( is_singular() ) {
	$title = $this->get_content_title();

	if ( empty( $title ) )
		$title_part = $original_title;
}

So in front of this elseif statement i added elseif that only applies to pages.

} else if ( is_page() ) {
	global $q_config;
	$title = qtrans_use($q_config['language'], $this->get_content_title(), true);
}

And this fixed problem.
I apologize because i didn't read posts above, but i just wanted to share this. :D


Viewing all articles
Browse latest Browse all 42467

Trending Articles



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