This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is setting up the currency switcher using the [currency_switcher] shortcode in their theme's header but is unable to configure it to display horizontally and show only the currency code instead of a dropdown list.
Solution:
First, we recommend increasing the PHP memory limit to meet WPML's minimum requirements for better performance. You can do this by accessing your server via FTP, opening the wp-config.php file, and inserting the following lines just before the 'That's all, stop editing! Happy blogging.' comment:
/* Memory Limit */ define('WP_MEMORY_ LIMIT', '256M'); define('WP_MAX_MEMORY_LIMIT', '256M');
For more information, visit WPML's minimum requirements.
For customizing the currency switcher to display horizontally and show only the currency code, refer to our documentation here: Multi-Currency Support for WooCommerce. You can use the following PHP code to achieve this:
do_action('wcml_currency_switcher', array( 'format' => '%code%', 'switcher_style' => 'wcml-horizontal-list' ));
If this solution does not apply to your case, or if it seems outdated, 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 further assistance is needed, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 1 reply, has 2 voices.
Last updated by 2 years, 6 months ago.
Assisted by: Nicolas V..