• I want to make the sidebar look different on different pages. For example, on my home page (which is not the blog page) I would like the sidebar to show an excerpt from the latest blog post, and a list of the most recently updates pages. But on individual pages, I would like the sidebar to show a list of pages from a particular category (for example, on my page about ponmds, I would like the sidebar to show a list of pages also categorised “pond” [I’m using a plugin to categorise pages]) and maybe an excerpt from the most recently updated page in that category. On the blog page, I’m not sure what I want it to show.

    Would this be better done with widgets, or by editing the sidebar directly? Would it be best done in a page template, or in the sidebar file, etc? And how do I do it?

    Thanks!

Viewing 1 replies (of 1 total)
  • Hi reptilegirrl,
    I had a problem just like that a while ago, so I did this:
    Used the Plugin “Widget Logic” which allows you to put code like is page('linkpage') in for every widget to just let it show on your linkpage for example.

    Also I downloaded the “Is Subpage of” Plugin which extends the Widget Logic so you can also write is_subpage of('3') and the widget will only be shown if it is a subpage of your page with the ID 3.

    VERY VERY helpful for displaying different content is this plugin: Contentboxen. It works like this: You can write anything into an article and put the article in the category “contentboxes”. This Category will not be shown in the loop. But all the articles in the contentboxes Category will appear under any page or article and you can choose by checkbox which contentbox you want to display in the sidebar of the article/page.

    Hope you understand my English and I hope this helps you.
    Cheers
    wearitwell

Viewing 1 replies (of 1 total)
  • The topic ‘Sidebar different on different pages- how can I do this?’ is closed to new replies.