Currency Switcher on Header - by Zeeshan

This topic has 6 replies, 3 voices, and was last updated 8 years, 1 month ago ago by Eva Kemp

  • Avatar: Zeeshan
    Zeeshan
    Participant
    February 25, 2016 at 11:52

    Hello Eva Kamp,

    I have installed WPML and want to install currency switcher on the place i have indicated on the screenshot.

    https://www.dropbox.com/s/x81a6ph4gbk3z6t/currencies.PNG?dl=0

    I want it on the entire site, i mean every page, please help WHERE & HOW to put the code.
    The code WPML suggests is :

    WPML wrote thus: if i have to use the one i have made bold or the other one that is not bold.
    g) If you want to show switcher on location besides widgets, you can use the following shortcode:

    [currency_switcher]

    or if you want to use the switcher on theme files you can use the following PHP code.

    echo do_shortcode(‘[currency_switcher]’);

    Best Regards
    Zeeshan

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    February 25, 2016 at 12:11

    Hello,

    You need add shortcode in Appearance > Widgets > Left Side top bar area in Text widget.

    Regards,
    Eva Kemp.

    Avatar: Zeeshan
    Zeeshan
    Participant
    February 25, 2016 at 13:57

    Hello,

    It did not work, if you look at the earlier screen shot I want it top extreme right side, for clarity see screen shot.

    https://www.dropbox.com/s/m936rkyk0y22n7z/1.png?dl=0

    Regards

    Zeeshan

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 25, 2016 at 15:27

    Hello,

    In this case you need select other header type in Theme Options > Header (use type 1,2,3,4,5,6 or 7, so where top bar is present) and add currency shortcode in Appearance > Widgets > Right Side top bar area.

    Best regards,
    Jack Richardson.

    Avatar: Zeeshan
    Zeeshan
    Participant
    February 26, 2016 at 18:27

    Hello,

    Selected the header 7 and placed the WPML Currency switcher code in left side top bar area text widget, why it has become so awkward – code appearing on front making top bar enlarged, please see screenshot and advise.

    https://www.dropbox.com/s/9abqropxlud31yf/WPML%20Currency%20Switcher.PNG?dl=0

    Regards

    Zeeshan

    Avatar: Eva
    Eva Kemp
    Support staff
    February 26, 2016 at 18:57

    Hello,

    You pasted php code in html editor, it’s incorrect. Remove it and just add this shoercode [currency_switcher] in Text widget.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.