1

I've installed and activated WooCommerce Multi-Currency plugin. I'm still on the free version but I with that I can add two currencies. This works fine if I try to add the widget to the footer or some other widget area. But I need to have this in the top bar and it seems OceanWP does not have a widget area for that.

So I tried to add it with the shortcode [woocommerce-currency-selector format="{{code}}: {{name}} ({{symbol}})"]. But the shortcode just shows up as text. I've tried adding it with echo do_shortcode as well but it still shows up as text.

What am I missing?

1

If you add the following to your functions.php file

add_filter('wp_nav_menu_items', 'do_shortcode');

then you can add a 'custom link' item to a menu, such as secondary menu, and add the shortcode to the 'navigation label' field of the custom link.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.