Support » Plugin: Polylang » Latest Polylang update makes my website look garbled

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    In Pagelines code, there is an attempt to be compatible with Polylang 🙂 However, it does not seem to work as expected.

    In file includes/class.render.css.php (line 349 in 3.7.9):

    if ( defined( 'PLL_INC') ) {
    	global $post;
    	$lang = Polylang_Base::get_post_language( $post->ID );
    	return sprintf( '%s/%s/', get_home_url(), $lang->slug );
    }

    should be replaced by:

    if (function_exists('pll_home_url'))
    	return pll_home_url();

    or even completely removed (Polylang supports the equivalent function of WPML ‘icl_get_home_url’ since 0.9.4)

    Changing this may solve the issue.

    It did. I deleted the whole part and things worked again. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Latest Polylang update makes my website look garbled’ is closed to new replies.