ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
---|---|---|---|---|---|
Floating language switcher doesn't show
เริ่มโดย: premium-rallyI
ใน: English Support
Problem: functions.php file of the active theme: add_action('wp_footer', 'wpml_floating_lang_switcher');<br /><br />function wpml_floating_lang_switcher() {<br /> echo '<div class="wpml-floating-language-switcher">';<br /> do_action('wpml_add_language_selector');<br /> echo '</div>'; <br />} 2. Added CSS to style the language switcher in Appearance >> Customize >> Additional CSS: .wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {<br /> margin-bottom: 0;<br />}<br /><br />.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions a {<br /> background-color: transparent !important;<br />}<br /><br />.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {<br /> padding: 5px;<br />}<br /><br />.wpml-floating-language-switcher {<br /> position: fixed; <br /> bottom: 70px; <br /> right: 20px; <br /> z-index: 99999; <br /> background: white; <br /> border-radius: 16px; <br /> box-shadow: 0 4px 16px rgba(0,0,0,0.12); <br /> padding: 8px 16px; <br /> z-index: 99999; <br /> -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);<br /> -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);<br /> box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);<br />} 3. Configured the language switcher to display only flags via WPML >> Languages > Custom Language Switcher by pressing the Customize button. For more details on customizing language switchers, visit Custom Language Switcher documentation. If this solution does not resolve your issue or seems outdated, please check related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here. |
|
0 | 9 | 1 weeks, 4 days มาแล้ว | |
Floating language switcher
เริ่มโดย: premium-rallyI
ใน: English Support
Problem: Solution: 2. Check for PHP Errors: Look for any PHP syntax errors that might prevent the functions.php file from executing. Consider testing with a default WordPress theme like Twenty Twenty-One to see if the switcher appears. 3. Clear Cache: Clear any caching mechanisms to ensure changes are reflected immediately. 4. Plugin Conflicts: Deactivate all non-essential plugins to rule out conflicts. Reactivate them one by one to identify any issues. 5. Inspect Footer: Use browser tools to inspect the footer for any output related to the switcher. 6. WPML Settings: Confirm that WPML is properly set up and all necessary modules are activated. If these steps do not resolve the issue, the client may need further personalized assistance. It is recommended to check the related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and ensure that the latest versions of themes and plugins are installed. If the problem persists, please open a new support ticket at WPML support forum for more targeted help. |
|
0 | 8 | 2 weeks, 5 days มาแล้ว |