WoodMart multilingual site setup with different language sidebars

in using WoodMart ThemesWhen building a WooCommerce multilingual site, in addition to translating products, pages, and menus, theShow different sidebar content for different languagesIt is also a key step in improving the user experience of your site. This article will show you hands-on how to fulfill this requirement for sites based on the WPML or Polylang's multilingual site.

Image [1]-WoodMart Multilingual Site Setting Sidebar in Different Languages

I. Preparation: Confirmation of the use of multi-language plug-ins

The current mainstream multilingual solutions are:

  • WPML (paid)
  • Polylang (free and professional versions)
Image [2]-WoodMart Multilingual Site Setting Sidebar in Different Languages

WoodMart works well with both plugins.compatibilityThis article uses Polylang as an example to illustrate the logic of WPML. In this paper, we use Polylang as an example for illustration, and the logic of WPML is similar.

II. Use of the "WoodMart Conditional Sidebar" feature (Dynamic Sidebar)

WoodMart's built-in "Conditional Sidebar" feature supports conditional display by language, page, category, etc., which is ideal for multi-language requirements.

The steps are as follows:

  • Backstage → WoodMart → Theme Settings → Sidebar
  • Find it."sidebars"Settings" item, click "Add new sidebar"
  • Name it "Sidebar Chinese" or "Sidebar English".
Image [3]-WoodMart Multilingual Site Setting Sidebar in Different Languages

Widget Area to enable "language awareness"

WoodMart offers the ability to customize the Widgets area so you can:

  1. Add multiple sidebars for different pages or page templates
  2. Create widget content for different languages in the backend.

The procedure is as follows:

  • Go to WordPress Backend → Appearance → Widgets
  • Add different content modules (e.g., categories, article lists, contact information, etc.) to the sidebar area for each language
Image [4]-WoodMart Multilingual Site Setting Sidebar in Different Languages

Setting up language conditions with Polylang

exist Polylang With the plugin enabled, you can specify the language on a per-post, per-page or per-product basis.

When creating a page or post:

  • Select Language Version
  • Specify which custom sidebar to use for this page (you can find "Page Layout" → "Select Sidebar" on the right side of the page editor)
Image [5]-WoodMart Multilingual Site Setting Sidebar in Different Languages

V. Use of gadget plug-ins to achieve language switching judgment (optional)

If you want to switch the content in the same sidebar by conditionally judging it, you can also use a condition such as Widget Logic Plug-ins.

Image [6]-WoodMart Multilingual Site Setting Sidebar in Different Languages

Enter the condition code below each gadget, for example:

  • Display Chinese content:pll_current_language() == 'zh'
  • Displays content in English:pll_current_language() == 'en'

This allows the samea side-bar (in software)Switch content according to language.

Frequently Asked Questions and Optimization Suggestions

Q1: Is it necessary to create different widget areas for each language?

Yes, it is recommended to have separate content for each language to have better control over the presentation.

Q2: Will the theme update affect the customized sidebar?

No. WoodMart's sidebar settings are saved in the database and are not cleared by theme updates.

Q3: How can I make the product categories switch according to the language as well?

Make sure the product categories themselves are translated and use the "Product Categories" widget in the sidebar, which will automatically recognize the current language.

summarize

combining WoodMart With the powerful theme settings and Polylang or WPML plugins, you can easily create exclusive sidebar content for different languages. Whether it'sContent-based websitesOr cross-border e-commerce platform, reasonable configuration of multilingual sidebar, are to build a professional site can not be ignored details.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨詢:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
? Reprint statement
This article was written by Little Lin
THE END
If you like it, support it.
kudos755 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments