aidtrio.blogg.se

Magento language switcher not working
Magento language switcher not working




magento language switcher not working
  1. Magento language switcher not working how to#
  2. Magento language switcher not working code#

So, for example, if you want to add it to your menu:

Magento language switcher not working code#

Paste the code target field between the double quotes.Right-Click on the element in the console.Use the arrow on the top left of the console.Right-click on the element you want to place the language switcher into.⚠️ To find the CSS selector (the "target"): This needs to be replaced with the CSS selector of the parent element where you want the language switcher to be placed. The piece of code that’s important here is the “.header-nav” as this determines the location of your language switcher. Important: don’t forget the comma after your API key. Target: ".header-nav", // You'll probably have to change it (see the step below in order to find the correct CSS selector) Weglot.initialize() Īdd the following piece of code after “YOUR_API_KEY” ( just delete any of the old code after your API key): , You should see the following code (with your own API key in place of YOUR_API_KEY): Go to your Shopify admin > Online Store > Themes > Action > Edit Code > Snippets > weglot_switchers.liquid. a. Add the "Switchers" option to your Weglot.initialize code To add the Language Switcher to your menu, you can follow one of the 3 methods below however, we recommend the first option.

Magento language switcher not working how to#

How to change the position of the switcher on Shopify Refresh your website, you'll see that the Weglot switcher is now in the selected widget area. The author of the theme sets these areas. These widget areas depend on the theme you're using. Go to your WordPress Dashboard > Appearance > Widgets b. Add the Weglot button in a widget area The Weglot switcher is now on your main menu. Now you can drag and drop the switcher to change the order of the items in the menu.Ĭlick on "Save Changes" and refresh your website.

magento language switcher not working

Select 'Weglot Switcher' on your left, check the checkbox, then add it to the menu. Select the menu where you would like the Weglot Language Switcher to be placed. How to change the position of the switcher on WordPress a. Add the Weglot button to your menu To do that, you have several possibilities depending on your integration:ġ. However, you have the possibility to change its position. Using Weglot, by default, the language switcher will appear at the bottom right of your website. In this article, you'll see the different methods to change the position of the Weglot language switcher depending on your integration How to change the position of the language switcher?






Magento language switcher not working