Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same question and I will be very happy if someone have an answer.

    Thanks

    Plugin Author Chouby

    (@chouby)

    Hi!

    Do you mean that you want your logo pointing to the homepage in the current language? If this is the case, there is nothing special to do. You can use standard WordPress function home_url( '/' ) in your PHP template file, Polylang will translate it automatically.

    Hi and thanks for your reply.

    Yes I want that my logo pointing to the hompage according the language.
    If I’m in the default language the link of the logo will be https://mywebsite.com, if I’m in another language for example in french the link of the logo will be https://mywebsite.com/fr…

    But if you can give me more details to insert a good code in my php file I will be very happy.

    Thanks again.

    Actually both theme I’ve tested polylang with have automatically this behaviour, landing page switch to browser’s default if available, and while browsing if i change language on a page and click the logo, I reach the landing page in the same language i was one click before…

    I have for landing page a ‘static page’, this page#1 has a translation (page#2), polylang seems to point automatically to the correct one according to current language.

    You would have to replace the link over your logo (in header.php probably) with a standard
    <a href="<?php bloginfo( 'url' ); ?>/" title="<?php bloginfo( 'name' ); ?>">

    But it depends on how you’ve set wordpress landing page too I guess…
    By the way you should give all your settings as described in the top post of support forum too, that would help and it is anyway described as mandatory prior posting …

    Not sure if this issue is resolved for you guys but I’m using href=”<?php echo pll_home_url(); ?>” and it works fine

    OMG I love you FatalMojo loool

    It’s working fine!!!’

    Thanks alote

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Polylang on logo click’ is closed to new replies.