WordPress.org

Ready to get started?Download WordPress

Forums

What pulls in the sidebar ? (6 posts)

  1. bugsmi0
    Member
    Posted 7 years ago #

    I modifed a 2nd sidebar.php but for some reason its pulling in the old one as well, I have not found any pages that pull in the sidebar by default is it another area I should be looking ?

  2. moshu
    Member
    Posted 7 years ago #

    Like in the case of any design/layout question - without knowing which theme did you modify, nobody will give you an answer.
    What is "2nd sidebar.php"? How are you calling the second sidebar file? Give as much info as you can...

  3. bugsmi0
    Member
    Posted 7 years ago #

    I followed one page template example duplicated page renamed to snarfer.php and did a php include for header2/footer2

    and called a page with the template snarfer.php everything appears to switch over nicely but the default sidebar stays and when I use an include for sidebar2 it pulls it in but the old one remains as well,

    my attempt was to remove the categories on the new template leaving just the pages in the side bar

    then for the other would have only the categories

  4. bugsmi0
    Member
    Posted 7 years ago #

    I decided to just duplicate the default theme and work from there,

    added a header2.php and a sidebar2.php and duplicated page.php, all seems to be going as planned in the get sidebar call i changed to include sidebar2.php but for some reason its not working, i can get everything else but the sidebar

  5. moshu
    Member
    Posted 7 years ago #

    Are you sure you didn't leave the call for the old sidebar in the template?
    The "normal" sidebar.php is called by a WP function:
    get_sidebar - did you delete it?

  6. bugsmi0
    Member
    Posted 7 years ago #

    i got it working now, worked better once i used a copy of the default theme

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.