moorsanna
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Help!Display flags onlyHey @lachender_engel and @ivanbel,
in my backend for some reason I do not have this option:
1- go to Appearance/Menu
2- in your menu you should have “list of languages”. Open it.
3- check “Display flags only”Anyhow, I am working with a child theme of spacious, and would like to implement this:
<?php pll_the_languages( array( ‘show_flags’ => 1,’show_names’ => 0 ) ); ?>
The question is, I can not figure out how the languages dropdown link gets into my menu, there is no menu options in the plugin backend neither in the WP menu nor the theme menu.
I am desperately trying to find the right php file where to put the above code, to only display the two flags without a dropdown link that states “languages”. Sorry for being a pain.Forum: Plugins
In reply to: [Polylang] Display only flag on Desktop and mobile@lachender_engel THANK YOU and sorry about the cross post!
Forum: Plugins
In reply to: [Polylang] Display only flag on Desktop and mobileHi there,
it seems that you seem to be fitter than I in terms of WP ?? I am trying to find a solution for my menu as well. a) I can not find these settings in the backend @lachender_engel:
* Displays language names
* Displays flags
b) is it somehow possible to show only the two language flags in my menu, with out the “languages” dropdown?? Well, or at least only displaying the flags…
I have found this, not sure if this is right:
<!– outputs a flags list (without languages names) –><?php pll_the_languages( array( ‘show_flags’ => 1,’show_names’ => 0 ) ); ?>
Important: You have to output yourself the ul tags if you don’t use the dropdown option
Also what does this mean: IMPORTANT: when using one or more of these function, you *must* check for its existence before using it, otherwise your site will badly break with a fatal error at next Polylang update (as WordPress deletes the plugin when updating it).
Is this what I want and if yo, where and how do I implement this please? Because in the backend of the plugin, I can not see any settings. Thank you!! ??
@sv1cec – I like your flags, and that would be awesome to have this solution, without the google transalte element. Is this polylang you are using or some different solution? Cheers!- This reply was modified 7 years, 2 months ago by moorsanna.
Forum: Plugins
In reply to: [Polylang] Help!Display flags onlyCheers for the idea, the thing is, I do not want the menu item “languages”, but jut the two flag options displayed…. ??
Forum: Plugins
In reply to: [Polylang] Help!Display flags onlyHey @ivanbel ,
I just sported everything out in the WP-backend in the plugins settings, you choose the language and the according flag.
The only thing I changed, since I did not want the current language displayed was this:
#site-navigation .current-lang {
display: none;
}
In your case the issue for the flags not displaying might be this:
“It is quite frequent that theme developpers forget that plugins can add images in menu items and thus create custom walkers which do not interpret the html code used by Polylang to display flags.”
Not sure if this helps…as said, I really would like to display just the other two options in the menu….in case anyone has any ideas?? ??- This reply was modified 7 years, 2 months ago by moorsanna.
Forum: Themes and Templates
In reply to: twentyten child does not show/activateThanks for the idea, unfortunately it is still not showing…
Can it be that I have to update wp?Or anything else?
Sorry to be a pain, but I just can’t get my head around it…