• Hi,

    I’m trying to configure some widgets so that they only display on certain pages, but I don’t know how to achieve this. Perhaps something with a page id in the sidebar code?

    Thanks,

    Jon

Viewing 5 replies - 1 through 5 (of 5 total)
  • This might help (e.g. KatGirl’s suggetion):
    http://wordpress.org/support/topic/85847?replies=13

    Thread Starter jonrob

    (@jonrob)

    hmm…not quite what I’m after I don’t think – although I may have to read the thread through a couple more times to be sure 😛

    As I understood it, that post was explaining how to set up a number of different sidebars; I was hoping to keep the same sidebars but specify different widgets depending on the page that they’re on. (I suppose this could work in a hacky kind of manner?)

    K2 has the functionality I was looking for I think, but am working from a custom theme…

    Cheers for the suggestion though!

    Jon

    Just checking.

    Are you saying you want
    Page 1:
    Widget A
    Widget B

    Page 2:
    Widget C
    Widget D

    then I believe KatGirl’s suggestion was meant to address that.

    But, if you are saying:
    Page 1:
    Widget A
    Widget B
    Widget C
    Widget D

    Page 2:
    No widgets

    Then you could use a Page template and use the if logic explained by Otto42 here:
    http://wordpress.org/support/topic/112225?replies=3

    Thread Starter jonrob

    (@jonrob)

    Thanks for the reply 😀

    I’ve managed to do what I wanted using the template tags in my sidebar.php!

    Huge, great big thank you!

    Jon

    Jonrob, I would like to achieve the same result. could you elaborate a little more on the steps i would have to take to use the template tags in my sidebar.php file?
    Thank you.
    frank

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Controlling which pages widgets are displayed on’ is closed to new replies.