Home Forums WoodMart support forum WMPL Language and currency switcher

WMPL Language and currency switcher

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #50234

    BigMaras
    Participant

    Could you please send me information and printscreens with shortcodes from your top menu “handmade” demo with currency switcher dropdown menu and language dropdown menu. I have problem with configuration WMPL with theme.

    Attachments:
    You must be logged in to view attached files.
    #50268

    Hello,

    In order to add currency switcher drop-down you will need:

    1. Add a text Text/HTML to Header Builder as shown: http://prntscr.com/iz8jf5

    2. Insert there the shortcode [currency_switcher]

    Here you will find instructions on currency switcher configurations: https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/

    If you want to add the language switcher take the following steps:

    1. Create a menu in Appearance > Menu

    2. Create language switcher for menu

    3. Add menu, created in the Appearance > Menu via the Secondary menu in Head Builder http://prntscr.com/iz8ns8 and http://prntscr.com/iz8ny4

    You can find more instructions https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

    Best Regards

    #50295

    BigMaras
    Participant

    Hi,
    First thank you for reply. You wrote about main concept of wpml plugin but I ask not about this.

    One more time. I have two questions.

    First question – Currency switcher
    I know how to add currency switcher. I used shortcode [currency_switcher] in header builder and its working but it looks horrbile. I would like to receive effect like you received in “handmade” demo, printscreen (currency_handmade_demo.png)
    To be clear. Please check printscreen with configured by me currency switcher (currency_by_me.png)
    – How to change the name of this dropdown menu to for example “country” like in your demo?
    – How to make animated underline of every currency id dropdown menu like in your demo?
    – How to control font size and color of this dropdown menu? In WPML currency switching menu there are only simple settings with background colors.
    – How you do exactly the same dropdown menu like in “handmade” demo?

    Second question – Language switcher
    The same as before. I know main concept. I’m using two option to create language switcher. First like you said by menu – printcreen (screen1.png) or option suggested by WPML by shortcode in header builder [wpml_language_selector_widget] – printscree (screen2.png). Both looks terrible.I would like to receive the same effect as you – print screen (screen.png)
    – I would like to receive animated underline in dropmenu
    – I would like to control font size, color etc in this menu
    – I would like to change the name od this dropdown menu
    Generally exactly the same as in “handmade” demo.

    The most important question – how?

    Sincerely,
    Mark

    Attachments:
    You must be logged in to view attached files.
    #50323

    Artem Temos
    Keymaster

    Hello,

    Could you please provide us your admin access so we can check how it looks on your website now and provide you some additional recommendations?

    Regards

    #50329

    BigMaras
    Participant

    I added photo with printscreens. There is not needed access to see this because this is default dropboxes so they looks probably exactly the same on any other theme.

    My question is how to make this dropboxes to look like in the template “handmade”?

    #50346

    Artem Temos
    Keymaster

    But already gave you an instruction how to make it look as on our demo. Probably, some settings are missed. But we have to see your website to understand why it looks this way and not the same as on our demo.

    #50420

    BigMaras
    Participant

    Ok, I created temporary testing environment from scratch. In private content access to this.

    #50427

    Bogdan Donovan
    Keymaster

    Hi,

    WPML Currency switcher

    Our main demo is using default WordPress Menu placeholder that may not look like the final plugin that changes the currency or language of the site.

    1. Since the content of the shortcode is controlled by the WPML plugin, the menu items of the WPML currency switcher dropdown cannot be changed via WordPress theme. Try to contact plugin support.

    2. Unfortunately, the HTML structure of the WPML currency switcher menu does not allow us to apply the same underline style as on the standard WordPress menus.

    3. Try to use the following code snippet to control the font size of the currency switcher menu items.

    .whb-text-element .wcml-dropdown a.wcml-cs-item-toggle {
    	font-size: 12px;
    }
    .whb-text-element .wcml-dropdown .wcml-cs-submenu li a {
    	font-size: 12px;
    }

    WPML Language switcher

    Language switcher shortcode [wpml_language_selector_widget] have his own style options in WPML plugin settings page https://prnt.sc/izqpr5. To place the language switcher in the site’s header, we recommend using menu language switcher, which completely inherits the style and structure of the standard WordPress menus.

    1. You can enable underline style in menu element settings http://prntscr.com/izr6jw.
    2. You can control the size of language switcher menu items via this CSS code snippet.

    .menu-item-language-current > a .wpml-ls-display {
    	font-size: 12px;
    }
    .menu-item-language .menu-item-language > a .wpml-ls-display {
    	font-size: 12px;
    }

    3. Name of the language switcher menu items is related to the WPML plugin and unfortunately cannot be changed via the theme settings.

    Regards

    #50432

    BigMaras
    Participant

    Thank you for explanation but bad information about currency switcher 🙁

    1) Please tell me, where (in what place win wp) I have to add this CSS code snippets?
    2) Is it possible to also delete a little free sprace by this code snippets before, after and at the bottom of text in menus currency switcher and language switcher (printscreen – screen5.png). Now I have too much free space and its not look as good.

    Attachments:
    You must be logged in to view attached files.
    #50439

    Bogdan Donovan
    Keymaster

    1. Code snippets can be added to the Custom CSS area in Theme Settings. https://prnt.sc/izs2wc
    2. You can control width and padding of the language and currency switcher dropdowns menus via following shortcodes.

    Language switcher

    .menu-item-language .sub-menu-dropdown {
        width: 165px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .menu-item-language .sub-menu-dropdown ul li a {
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 18px;
        padding-right: 18px;
    }

    Currency switcher

    .whb-text-element .wcml-dropdown .wcml-cs-submenu {
        width: 165px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .whb-text-element .wcml-dropdown .wcml-cs-submenu li a {
        padding-top: 10px;
        padding-right: 15px;
        padding-bottom: 10px;
        padding-left: 15px;
    }

    Regards

    #50502

    BigMaras
    Participant

    Ok, most of your recommendation working but with one exception.

    1) Currency switcher – everything ok. I could change font size and padding without any problem
    2) Language switcher – I could change font size but padding doesn’t change anything. Even when I left only flag

    #50520

    Bogdan Donovan
    Keymaster

    Hi,

    Try to use the following CSS selector instead of the previous selector that was related to the language switcher.

    .whb-secondary-menu .menu-item-language .sub-menu-dropdown {
        width: 95px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    Regards

    #50640

    BigMaras
    Participant

    Perfect. Everything working. Now I could control everything with switchers. Huge thank you.
    You could close ticket as resolved but if this will not be problem maybe could you share some official source (links) where to find information about this css classes and possible modifications for future use.

    #50658

    Artem Temos
    Keymaster

    Great, we are glad to help you!

    #62539

    cumenda
    Participant

    Hi,
    I followed all instructions but it looks like they are working for all pages excluding the “shop” page…

    I wrote my experience on post https://xtemos.com/forums/topic/error-with-menu-and-woodmart-header-builder/#post-62424

    Not able to fix it since now….

    Could Your help?

    #62563

    Hello,

    Yes, we are still checking this issue. It will take more time, as soon as we find out the reason or solution we shall get back to you immediately.

    Hope for understanding.

    Best Regards

Viewing 16 posts - 1 through 16 (of 16 total)