WordPress.org

Ready to get started?Download WordPress

Forums

Custom Sidebars
[resolved] [Plugin: Custom sidebars] Not displayed in every language with wpml (2 posts)

  1. ideesud
    Member
    Posted 1 year ago #

    Hi,
    I wpml plugin for a tourist site. The sidebars can not appears for two different languages in "categories archives". Do you think, there is a way to fix this ?
    Regards
    John

    http://wordpress.org/extend/plugins/custom-sidebars/

  2. Thomas Maier
    Member
    Posted 1 year ago #

    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;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags