sidebar right customization

Hot WordPress Themes Support Forum WordPress Themes Kindergarten sidebar right customization

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #695
    Tomasz
    Participant

    Hi!

    I need to display widget sidebar right on pages, but on some groups of pages this menu should be diffrent.
    Is this possible with your theme?

    If not, I have an idea, but…
    I thought that if condition or switch will be the best depending on is_page() function.
    But how I can resolved this? I found pice of code displaying this sidebar

    Code:

    and my ideas ended.. Can you give me at last a tip for it?
    Site link: kindergarten

    #1807
    Ivan Milic
    Participant

    Please post your question under wordpress section

    #1808
    milos
    Moderator

    Ok, I moved this topic to the correct location.

    Quote:
    I need to display widget sidebar right on pages, but on some groups of pages this menu should be diffrent.

    Please explain this as I don’t understand. You want to publish a widget on pages (where is that, and what widget?). Widget should be different on some pages. How you mean “different”. Do you want different widgets on different pages in the same place (position)?

    Thanks

    #1809
    Tomasz
    Participant

    Thank you for move topic to right place.

    Ok, now I will try to explain it more clearly.
    I installed kindergarten theme on my site.
    This theme allows to put sidebar (which is called sidebar_right) and it display a submenu.

    Now, on few pages I would like to have a submenu1, on next few pages I would like to display submenu2.
    Submenus I created from admins panel.

    I thought that I will put a switch or if condition, but at the code function displaying submenus is:

    Code:

    And now I have no idea how to resolve problem. All names of submenus starts with “right” + “String”. I suppose it should be something like:

    Code:
    switch ($page) {
    case “one”: echo $rightX;
    break;
    case “two”: echo $rightY;
    break;
    }

    but what I should write as a “$right…” cause I have (ucfirst($mpostion[0])) which is not saying me nothing….

    Can you help me with it?

    #1810
    milos
    Moderator

    How about to create two or more separate menus. Then you can publish specific menu widgets on the needed pages only using Widget Control plugin (integrated in Kindergarten theme). More details how Widget Control works are here http://www.hotjoomlatemplates.com/blog/wordpress/209-publish-wordpress-widget-on-certain-pages-only

    Thanks
    Milos

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.