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

    Hi There

    When I’m the english layout of my page and i click on the Logo in the top left corner it leads to Page Not Found 404 message.
    Where can i change the Logo Behaviour?

    The Goal is that in the german layout it leads to the german page “Startseite” and in the english page to “Home”

    Kind Regards
    Oliver

    #1347757

    Hey attifilm,
    Thanks for the login to your site , I added this script in your functions.php to correct the logo link in English for Polylang:

    function polylang_logo_link_for_english() { ?>
        <script>
    (function($){
      $('html[lang="en-US"] span.logo').find('a').attr('href', 'https://www.your-site.ch/wp/en/home/');
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'polylang_logo_link_for_english');

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1350784

    Hi Mike

    Sorry for the late reply.

    I had to change the command part with the link to website. But now it works perfectly.
    Thank you very much.

    Have a great day.
    Kind Regards Oliver

    #1350793

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Clicking on Logo in Menu Bar on second language page leads to "page not found"’ is closed to new replies.