You are here:
< Back

When using the Polylang translation plugin, it may be necessary to adjust the logo sizes for different languages to accommodate the different length navigation.

To do so, go to  WordPress Dashboard > Divi > Theme Options > Integration > Add the below code to the < head > (remembering to add <script> and </script> before and after

jQuery(document).ready(function(){

if(jQuery(“html”).attr(“lang”) == “en-GB”)
$(“#logo”).css({“height”: “60px”, “max-height”: “100%”});

if(jQuery(“html”).attr(“lang”) == “ru-RU”)
$(“#logo”).css({“height”: “70px”, “max-height”: “100%”});

if(jQuery(“html”).attr(“lang”) == “fr-FR”)
$(“#logo”).css({“height”: “80px”, “max-height”: “100%”});
});

The language codes will need updating depending on the languages being used. You can then adjust the pixel height of the logo rather than doing it as a %.

Next Drag and drop content