How do I create my own custom polylang language switcher? - wordpress

so I don't want to use the built-in options Polylang gives us to display the language switcher. I basically want to to develop my own dropdown language switcher. I don't like polylang's version, as it has the browser's specific styling.
I know how to build a dropdown with css & html but I don't know how I get the polylang language switcher to work in my own html dropdown - can anyone help?

Related

Wordpress custom language switcher

I will use the language switcher on Wordpress, but I want to make a custom button like a toggle button instead of a dropdown list. I couldn't find a resource about it on the internet, how do you think I can do this?

Wordpress Multisite Language Switcher Plugin to display post url for different languages

I am currently using the Multisite Language Switcher Plugin on one of our webpages. I am trying to create a language switch button that will allow the user to go to the same post of the other language when they click on it.
So for example, if we have the english post and its equivalent in the welsh language, I would need to get the URL of its counterpart for the user to go to that page.
Any help would be appreciated.
Configure Multisite Language Switcher Options first then add switcher button from elements to anywhere you'd like to display.

How to customize Polylang Language switcher dropdown wordpress?

I am using Zerif lite theme in my wordpress website I have placed language switcher dropdown next to my navbar on the homepage . I have 3 languages .
I am facing two issues currently :
After logging in in my Wordpress admin the language switcher is working , I am able to change language by clicking on the dropdown but after logging out, I opened my website in two browser's(chrome,safari) the dropdown doesn't seem to work . Language is not changing ???
2.How to customize the language switcher dropdown color,size,font,border etc ?
Please help !!!Thank you.
Try to deactivate other plugins maybe it is caused by one of them.
You can customize in CSS, in wordpress or by some text editor in your child theme.

Mobile menu on wordpress

We are using Wordpress with the Avada 5.1.6 theme and Polylang plugin.
The mobile menu does not show on the english version it shows on the portuguese version
I've inspected the generated html and the menu exists in both pages.
I tried disabling the Polylang plugin and the mobile menu does not show on any page
Thank you!
TLDR:
Don't forget to check the selected language before editing configurations that you need to share between languages!
Long description
The issue was that custom css was being applied to the english version of the website hiding the header.
The reason why the configuration for custom css was not considered initially was caused by the fact that Wordpress actually treats each language as their "own website", each one having different configurations, including custom css.
By selecting "all languages" on the Wordpress menu, it was possible to reset the custom css configuration for all languages at once.
Thanks.

How to display only the non chosen language in the language switcher menu in a multilingual drupal 7 website?

Hi. I'm a newbie in Drupal development.
I'm building a multilingual website in French and English using Drupal 7.
I'm using Internationalization and Entity translation modules to translate contents and blocks in the page.
I'm using the theme Omega, with the sub-theme Foundation downloaded from the website friendlymachine to which I added another sub-theme file to modify the CSS.
I'm already having a language switcher block which is working properly.
My question is: what code in which file can I modify (and how?) to display in the language switcher only the non chosen (i.e the needed) language?
i.e: If I'm currently using the website in French, Only the option "English" is displayed on the language switcher menu. And vice versa. (if I'm using the website in English, only the option "French" is displayed in the language switcher menu).
Any help would be welcomed.
Thank you.
Hide the current language link (which is not link but text) for the Language Switcher block with css. It has a specific class for that purpose.

Resources