ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
---|---|---|---|---|---|
Really custom language switcher
1
2
3
เริ่มโดย: wdburgdorf
ใน: English Support
Problem: styleLanguageSwitcher function in the file /wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Loader.php . Here's how you can adjust the function: private function styleLanguageSwitcher() {<br /> if ( in_array( self::BLOCK_LANGUAGE_SWITCHER, $this->cssLoaded, true ) ) {<br /> return \'\';<br /> }<br /><br /> this->cssLoaded[] = self::BLOCK_LANGUAGE_SWITCHER;<br /> $css = file_get_contents(<br /> WPML_PLUGIN_PATH . \'/dist/css/blocks/language-switcher.css\'<br /> );<br /><br /> return $css ?: \'\';<br />}<br /> Add the following code within this method to check if the constant ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS is defined, and if so, return nothing, effectively stopping the CSS from loading: if (defined('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS')) {<br /> return \'\';<br />} This solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket at WPML support forum. |
|
1 | 33 | 2 weeks มาแล้ว | |
New address detected, but it’s the same
1
2
เริ่มโดย: wdburgdorf ใน: English Support |
|
3 | 28 | 2 months มาแล้ว |