This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Can I have two different custom language switchers?
Started by: thierryG-9
in: English Support
Problem: function test_ls() { global $sitepress; $testls = $sitepress->get_ls_languages(); foreach ( $testls as $lng ) { echo("<a href=" . $lng["url"] . ">" . strtoupper( $lng['code'] ) . "</a>"); echo ("|"); } } test_ls(); For full language names, you can use the existing options in WPML -> Languages to create one language switcher and style it as needed. For more information on customizing language switchers, you can refer to the following documentation: Please note that custom coding is beyond the scope of our support. For further assistance, you can refer to the WPML hooks documentation: If this solution doesn't look relevant, please open a new support ticket. |
|
3 | 5 | 1 year, 9 months ago |