• Hi,
    this is regarding the topic issue wit Yoast SEO, already raised by @agb58 before.
    After activating PolyLang the variables of Yoast like %%title%% %%sep%% %%sitename%% are not replaced anymore and stay blank.
    Unfortunately there is no solution in the previous thread, only written

    Solved with custom code

    Can anyone help or provide the custom code?

    Thanks and kind regards,
    Jo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jokr1985

    (@jokr1985)

    PS: Especially when using %%sitename%%

    Thread Starter jokr1985

    (@jokr1985)

    In the meanwhile i have some doubts regarding the text translation.
    Is there any way how i can remove the strings from Yoast?
    I’ve already tried the following without success…

    function unregister_yoast_strings() {
    	if(function_exists('pll_register_string')) 
    	{
    		//disable Yoast strings because they seem to conflict with storing the _yoast_wpseo_title
    		icl_unregister_string('title-page', 'wordpress-seo');
    		pll_register_string('title-page', '', 'wordpress-seo');
    		 
    	}
    }
    add_action( 'after_setup_theme', 'unregister_yoast_strings' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PolyLang & Yoast SEO variables’ is closed to new replies.