Viewing 1 replies (of 1 total)
  • Thread Starter maely94

    (@maely94)

    In another forum discussion, I’ve found this code that I should place in the functions.php :

    add_filter( ‘generate_logo_href’, ‘tu_english_navigation_logo_url’ );
    function tu_english_navigation_logo_url( $url ) {
    if ( ! function_exists( ‘pll_current_language’ ) ) {
    return $url;
    }

    if ( ‘English’ == pll_current_language( ‘name’ ) ) {
    return ‘https://www.ruskus-patruskus.com/en/’;
    }

    return $url;
    }

    But I’m using underscore theme with Elementor and I think I should modify this code but I don’t know how and where.

    Hope you could help me 🙂

Viewing 1 replies (of 1 total)

The topic ‘Polylang – Wrong redirection with the logo’ is closed to new replies.