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
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
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
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