I want to use custom images instead of language name in language switcher
-
Hi all,
I really appreciate this module but now I face a problem which I do not get solved as I am not really a programmer – at least I fail understanding how the filters work.
I found out so far that I can use
add_filter('pll_the_languages', 'custom_language_switcher', 10, 2);
in my custom plugin to change the output of the language switcher. But that’s all ?? HOW I exactly achieve what I want keeps being a secret to me. What I want to achieve: I have activated English and German. The language switcher should show up a custom image for each language (important: not as a background image but as a HTML inserted image with <img>). So when German is the language to switch to it shows a custom button and when English is the language it shows another custom button – no language name, slug or flag.
Could please somebody help me??
Best,
Tobias
- The topic ‘I want to use custom images instead of language name in language switcher’ is closed to new replies.