Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #618764

    Hi, I added a wpml language switcher drop down to the secondary menu from the wpml settings. Happy about its minimal design with Enfold, I wanted to add a currency switcher next to it. I tried this shortcode in my functions.php

    function add_custom_script_translator(){
    echo “<div class=’g-trans’>”.do_shortcode(‘[currency_switcher]’).”</div>”;
    }
    add_action(‘avia_meta_header’, ‘add_custom_script_translator’, 10);

    Through this, I was able to make some changes to the css but it would only display below the language switcher and not next to it.

    Next, I tried installing the shortcode menu plugin and just added the [currency_switcher] to the secondary menu. This time it was on the same level, but I wasn’t able to make any css changes to it. And on any page, besides a product page, the contents(currency switcher) are squished together.

    What would be the best possible way to have them appear somewhat like this? $ USD | ENGLISH

    Many thanks in advance!

    #620288

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #632917

    Hi, I decided to go with another solution on the last one, but I’ve been experiencing a bug with the product grid in avia layout builder. I want to se the columns to say 3 or 5 but it only stays at 2 columns per row all the time. It doesn’t change and I’m not sure why it’s not working.

    Please check the “See All Colors” in this link

    #632924

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    
    .shop_columns_3 .products .product{ width: 32%; }
    

    Best regards,
    Josue

    #632929

    Thanks a lot :)

    #633383

    You’re welcome, glad to help.

    Best regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adding wpml currency switcher shortcode to secondary menu’ is closed to new replies.