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

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

$
0
0

There were 2 issues with multilingual window titles:
- static pages
- static posts page
where titles were aggregated in all available labguages.

In class-frontend.php, I did one change and one addition as follows, starting line 322:

} else if ( $this->is_home_posts_page() ) {
			$title = $this->get_title_from_options( 'title-home' );
// Changes start here
// Changed to tackle multilingual issue on posts page
		} else if ( $this->is_posts_page() ) {
			global $q_config;
			$title = qtrans_use($q_config['language'], $this->get_content_title( get_post( get_option( 'page_for_posts' ) ) ), true);

// Added to tackle multilingual issue on pages
		} else if ( is_page() ) {
			global $q_config;
			$title = qtrans_use($q_config['language'], $this->get_content_title(), true);
// end changes
		} else if ( is_singular() ) {
			$title = $this->get_content_title();

Window titles are now displayed correctly on all pages: static home page, static posts page, posts and pages.


Viewing all articles
Browse latest Browse all 42467

Trending Articles



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