Tagged: child theme, CSS, Flag, Language, language selector, wpml
-
AuthorPosts
-
June 2, 2013 at 4:09 am #24197
For the top header, how can you make it say “English” instead of showing the British Flag.
June 4, 2013 at 5:12 am #122701Hi!
Please post a link to your website. We’ll investigate the code. Maybe the icon image is missing, etc.
Best regards,
Peter
June 4, 2013 at 9:27 am #122702The same goes for me, I would like to have EN DE TR instead of flags. Flags are a sensitive issue down here in Turkey.
Best, Nedim
June 4, 2013 at 9:29 am #122703June 4, 2013 at 10:03 am #122704It seems, some code went mysteriously into the framework… yay, flags, I want text. Few days ago ppl were asking how to get flags there… :D
June 4, 2013 at 10:37 am #122705Open up wp-contentthemesenfoldconfig-wpmlconfig.php and replace:
$output .= " <span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>";
with
$output .= " <span class='language_flag'>".$lang['native_name']."</span>";
or
$output .= " <span class='language_flag'>".$lang['language_code']."</span>";
June 4, 2013 at 11:31 am #122706Hi,
1- I don’t want to use WPML dropdown selector. I want to replace the flags with only text name and show it in the shrinking fixed header as another button, closer but over to the right to “home” and other buttons (similar to the “contact” position in this support website). It is possible?
2- My intention is show only the “Spanish” button when visitors are seeing the site in “English” language. If they click “Spanish”, the site will change to Spanish language and only shows the “English” button. I found the following css rules but i still can’t tested.
#[name of element] li {
display:block;
}
#[name of element] li.active {
display:none;
}
This rules will work?
What is the [name of the element] for WPML text name?
3- I’m using the Enfold child theme. I’m a newcomer to the web design. How should I modify the child theme in order to prevent the loss of this changes from later theme updates? I saw the Devin’s video tutorial for child theme and I suppose that I have to copy-paste wp-contentthemesenfoldconfig-wpmlconfig.php to wp-contentthemesenfold-childconfig-wpmlconfig.php and then modify the lines specified by Dude. I’ll be grateful for confirming this point.
I don’t want to modify anything that I can break. :)
Thanks.
Regards!
June 4, 2013 at 5:33 pm #122707Hi,
how can I sort flags inline in language switcher in the top menu? I want to display only flags, without language name.
Thanks,
regards!
June 4, 2013 at 5:45 pm #122708Hi!
I’ll close this thread now – please post your questions in separate threads.
Best regards,
Peter
-
AuthorPosts
- The topic ‘WPML Language Selector Text Instead of Flag’ is closed to new replies.