fbpx

Reply To: AJAX loading issue.

HomeSupport forumAJAX loading issue.Reply To: AJAX loading issue.
#14306
Artem Temos
Artem Temos
Keymaster

Hello,

Try to add the following code snippet to the functions.php file in your child theme. This bug will be fixed in our next theme update

function xts_get_document_title() {
	$title = wp_get_document_title();
	$post_meta = get_post_meta( xts_get_page_id(), '_yoast_wpseo_title', true );
	if ( property_exists( get_queried_object(), 'term_id' ) && function_exists( 'YoastSEO' ) ) {
		$taxonomy_helper = YoastSEO()->helpers->taxonomy;
		$meta            = $taxonomy_helper->get_term_meta( get_queried_object() );
		if ( isset( $meta['wpseo_title'] ) && $meta['wpseo_title'] ) {
			$title = wpseo_replace_vars( $meta['wpseo_title'], get_queried_object() );
		}
	} elseif ( $post_meta && function_exists( 'wpseo_replace_vars' ) ) {
		$title = wpseo_replace_vars( $post_meta, get_post( xts_get_page_id() ) );
	}
	return $title;
}

Kind Regards

Sign in

No account yet?

Create an Account