Answer the question
In order to leave comments, you need to log in
How to change the wordpress logo depending on the language?
How to change the logo depending on the language WP multilang plugin
If, for example, just do something like this
if(html lang="en"){
then display img=images-en.png
}
if(html lang="en")
then display img=images -en.png
How to implement this in PHP?
Answer the question
In order to leave comments, you need to log in
Use the wpm_get_language()
function
Look at the output and check based on the output
No checks needed, just logotypes should be given names according to the language code and output the logo image according to this language code.
<img src="<?= $lang ?>.расширение">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question