• Resolved napisal

    (@napisal)


    I’ve just updated plugin from 3.6.1 to 3.6.2 and my custom currency switcher css is now broken again. Custom switcher is called “ambery-wcml-dropdown” and is being added to the top of https://ambery.net/ with this code:

    add_filter('wp_nav_menu_items','add_search_box_to_menu', 10, 2);
    function add_search_box_to_menu( $items, $args ) {
        if( $args->theme_location == 'top-bar-menu' )
            do_action('wcml_currency_switcher', array('format' => '%code%', 'switcher_style' => 'savoy-child-ambery-wcml-dropdown'));
        return $items;
    }

    And every CSS line has it’s own name, like

    .savoy-child-ambery-wcml-dropdown{width:4.5em;max-width:100%;float:right;}

    Why after update dropdown stopped working?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, I am not sure what exactly happened with the currency switcher that you have.
    Is it different if you use the old version?
    I see that it is not styled at all, and that the currencies are displayed one below the other.
    Perhaps you should style it as you think it is most appropriate.

    Thread Starter napisal

    (@napisal)

    It happened right after the update. I have all the styles for my own custom switcher, but it seems that after update default switcher is being loaded and not my custom, which is named “savoy-child-ambery-wcml-dropdown”. Now I see that “wcml-dropdown product wcml_currency_switcher” div class is being loaded instead of “savoy-child-ambery-wcml-dropdown product wcml_currency_switcher”.

    Maybe something needs to be changed here?

    do_action('wcml_currency_switcher', array('format' => '%code%', 'switcher_style' => 'savoy-child-ambery-wcml-dropdown'));

    I talked with our developers and there should be no big changes that would affect the custom currency switcher templates.
    Perhaps it would be best if you can create a new ticket in our support forum at wpml.org so that we debug this more in-depth?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom switcher error after update to 3.6.2’ is closed to new replies.