O
O
ololoshka12020-07-30 14:16:11
WordPress
ololoshka1, 2020-07-30 14:16:11

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

2 answer(s)
D
DeniSidorenko, 2020-07-30
@ololoshka1

Use the wpm_get_language()
function Look at the output and check based on the output

U
ubuntu_lts, 2020-07-30
@ubuntu_lts

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 question

Ask a Question

731 491 924 answers to any question