I have use <?php do_action('wpml_add_language_selector'); ?> code in header file to display dropdown. Now i have custom design for dropdown. How to add class in WPMLs default twig template.
I understand what you're looking for. Since you want to implement a custom language switcher on your site, instead of modifying the default template, you can consider creating a custom language switcher by following the documentation below.
If you want to add custom classes to the existing Twig template, you'll need some custom coding. Unfortunately, assisting with this custom coding is beyond the scope of our support and therefore, I may not be able to assist you much in this matter. I appreciate your understanding in this matter.
But, if you want, you can hire a professional who specializes in customizing WPML and its functionalities. You will find someone from here: https://wpml.org/contractors/
If there is anything else you need help with, let me know.
Best regards,
Prosenjit
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.