WordPress.org

Support

Support » Plugins and Hacks » Custom Sidebars » [Resolved] [Plugin: Custom sidebars] Not displayed in every language with wpml

[Resolved] [Plugin: Custom sidebars] Not displayed in every language with wpml

Viewing 1 replies (of 1 total)
  • I used the custom sidebars plugin and WPML for a couple of websites now and always started with a research if there was a work flow for this. There isn’t or I didn’t find it. But this is my workaround:

    For pages:
    I create a sidebar for each language and assign the right sidebar to a page on the edit screen. No synchronization between the sidebars, but working for each language.

    For templates:
    If I dynamically have to choose s sidebar in a template I create the sidebars with a naming convention like “SIDEBARNAME LANG” (e.g. “about en”. When I load the sidebar in a template file I can use:

    $sidebar = "SIDEBARNAME";
    $lang = ICL_LANGUAGE_CODE;
    if (function_exists('dynamic_sidebar')) : dynamic_sidebar($sidebar . ' ' . $lang );
    endif;
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Custom sidebars] Not displayed in every language with wpml’ is closed to new replies.
Skip to toolbar