Skip to main content

Placing the switcher

Add the currency switcher and the product price list to your site through a shortcode, an Elementor widget, a classic-theme navigation menu item, or a block-theme Shortcode block.

Shortcode​

Paste the switcher shortcode into any post, page, or shortcode-aware template. The optional size attribute accepts small, medium, or large; leaving it out uses the size saved on the Display Options tab.

ShortcodeAttributes
[mhmcs_currency_switcher]size
[mhmcs_currency_prices]currencies, product_id, show_flags, price
Elementor widget
Currency Switcher
Currency Prices

Switcher shortcode: [mhmcs_currency_switcher] · Price list: [mhmcs_currency_prices]

Renamed in 2.0.0. These tags used to be [mhm_currency_switcher] and [mhm_currency_prices]. The old spellings were removed rather than kept as aliases, so a page still holding one shows the raw text instead of the switcher — update any post, page or template that uses them. WordPress.org reads a shortcode's prefix up to the first underscore, which made the old tags "mhm": three letters against a four-letter minimum. Your stored data is untouched; only the tags you type into content changed.

Elementor​

Drag the Currency Switcher widget from the Elementor panel onto your layout. The product price list is available the same way, as the Currency Prices widget.

Go to Appearance → Menus and add the Currency Switcher item to a menu. This screen only exists on classic themes; on a block theme use the shortcode or Elementor instead.

Block themes​

This plugin does not provide its own block yet. Use the core Shortcode block and paste either shortcode into it.

The full FAQ is on the FAQ page; the full list of known limits is on the Known limits page.