Header logo wpml problem

hi there,

i have a problem with my image on pro header. i translated the site with woml and all works fine except the image on top.
when i sleect the english version and clcick on the logo the german version is loaded again.
is it possible to stay on the english version?

i tried following solution i found in this topic but i cant get it to work:

i use the latest pro theme and wpml plugins…

thanks in advance

Hi Harald,

Thank you for reaching out to us. Since you’re using Pro, you can try out the jQuery solution:

  • In you header builder inspect your logo image
  • Assign your logo image an ID e.g customlogo (see screenshot)

  • You can then add the following code in your header’s JS section:
jQuery(document).ready(function () {
    if(window.location.href.indexOf("/en/") > -1) {
       jQuery("#customlogo").attr("href", "/en/");
    }
});

Don’t forget to clear all caches including your browser’s cache after adding the code. Let us know how this goes!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.