Z
Z
zero892020-05-02 13:41:01
WordPress
zero89, 2020-05-02 13:41:01

How to Change Logo When Changing Language WordPress, The7 Theme?

Hello !
Please tell me how to change the logo when changing the language. The7 Theme

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-05-02
@azerphoenix

Hello!
1) The theme used is irrelevant.
2) You implemented multilingualism using a specific plugin. PolyLang, WPML, Qtranslate-X, WPGlobus, etc. Find the documentation of this plugin and see how in the PHP code they catch the current user language and return the corresponding content.
For example:
PolyLang - https://stackoverflow.com/questions/29118772/how-t... pll_current_language( $value );
WPML - https://wpml.org/forums/topic/get-current-language... ICL_LANGUAGE_CODE
3) find the desired template that is responsible for displaying the logo. For example, header.php In this template, you will find either a logo output, or a link to other templates or hooks, etc. And then it remains to change this template so that, depending on the current language of the user, it gives the desired logo. (see point 2)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question