WordPress.org

Ready to get started?Download WordPress

Forums

Different sidebars for individual pages (4 posts)

  1. EricAlmighty
    Member
    Posted 8 years ago #

    I'm trying to see if it is possible to have a different sidebar for each Page on my site. Currently every page (including blog, archives, category, single post etc..) show the same sidebar. The defualt sidebar I have is good for my blog but I would like to have a different sidebar on my Pages (Graphics, About Me, Biography, Stats etc...) that can tell the veiwer the precise Page name and show content related to that page. Having a calendar and categories just looks tacky on pages having nothing to do with the blog. Is this possible?

  2. phpNeophyte
    Member
    Posted 8 years ago #

    You mean like on Elastic Dog for example?

    ~Kevin

  3. Ennis
    Member
    Posted 8 years ago #

    i have the same thing on my site (different info on each sidebar). If you create a new .php file, instead of calling the sidebar tag as seen in your themes index.php file, copy the contents of the sidebar.php and paste it into your new .php file. Make sure you paste it in the same area as if you were to call it (like in the index.php file in your theme.)

    Then just change the info of the sidebar in new .php file you created.
    Hopefully it wasn't too confusing.

  4. EricAlmighty
    Member
    Posted 8 years ago #

    Kevin, yes exactly like on Elasticdog.com....the only difference is that the Pages on my site are created through WordPress so any editing is done in the WordPress Admin center.

    Ennis, I tihnk I know what you mean....can I add the PHP includes tag in the Page editor on WordPress? Some tags such as the break tag don't work....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.