[Resolved] Wrong link from mobile logo in header (using Polylang)

Home Forums Support [Resolved] Wrong link from mobile logo in header (using Polylang)

Home Forums Support Wrong link from mobile logo in header (using Polylang)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #779828
    Oleh

    Hi there!
    The theme is working strange with Polylang.

    When I’m on any page of my second language from mobile device and press on the logo it leads me to the English home page, instead of leading to the second language home page.
    On Desktop everything works fine.

    I’m talking about this url:
    #mobile-header > div > div.site-logo.mobile-header-logo > a

    I hope you can help me with this issue.

    #780066
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Can you try this function?:

    add_filter( 'generate_logo_href', function( $url ) {
    	if ( function_exists( 'pll_home_url' ) ) {
    		return pll_home_url();
    	}
    
    	return $url;
    } );

    Let me know ๐Ÿ™‚

    #780727
    Oleh

    Hi Tom,

    Thank you, it works now!

    #780756
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.