Easy way to have an individual sidebar for every page in Wordpress?

4 replies
  • WEB DESIGN
  • |
Hello,
Is there an easy way to have for every page an individual content in the sidebar?
maybe a plugin that can handle this?
#easy #individual #page #sidebar #wordpress
  • Profile picture of the author thatsfine
    You will have to code the sidebar of the wordpress template.

    It will be like.

    if (page is home){

    echo "something";...........

    Something like that.

    I read a blog posts like this few days ago but dont really remember.

    Thanks and Regards
    Signature
    {{ DiscussionBoard.errors[759867].message }}
  • Profile picture of the author Kezz
    Yeah it will require you to dip into the code a little bit as far as I know. But there are a couple of different ways you can do it.

    Is it literally different 'pages' that you want different sidebars to show up for? As in, you create a new 'page' that shows up on your menu, and then you want a different sidebar for each.

    Or, is it different categories of posts etc that you want different sidebars?

    I can run you through some different techniques for each. Different methods will be more efficient depending on exactly what your after.
    {{ DiscussionBoard.errors[761637].message }}
    • If you know HTML and PHP coding very well then it won't be to big of a problem.

      You have to include php include files that have your specific sidebars already created.
      {{ DiscussionBoard.errors[761751].message }}
  • Profile picture of the author CaffeinatedWorld
    With the sidebar it's not so easy...

    Wordpress gives you two possibilities to divide pages:
    - Type of page - for example - static page (page.php), post (single.php) category (category.php) etc.
    - Page templates (only for pages or posts).

    You can have different sidebars for both of the kinds but you cannot have a different sidebar for every post for example.

    For more information look in the Wordpress Codex.
    {{ DiscussionBoard.errors[763737].message }}

Trending Topics