Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP theme support for sidebar.php


  • Number_6
    Participant

    @number_6

    Hi folks,
    BP: Version 2.6.1.1
    WP: Version 4.5.3
    Excuse me if I’ve missed something obvious, but I’m unclear on how to set certain template files for BP in my WP theme. I understand the template hierarchy – /my-theme/buddpress/members etc, but I’d like to work with files in the theme root like sidebar.php. When I upload to /my-theme/buddypress root, it still loads from the plugin copy.

Viewing 1 replies (of 1 total)

  • buddycore
    Participant

    @buddycore

    sidebar.php files should be placed in the root if you are using get_sidebar('name'); Otherwise you can load them with locate_template(); This will also point to the theme root, and not the BuddyPress root which is located at your-theme/buddypress. You can go straight to BuddyPress root in your child-theme by using bp_get_template_part() You just gotta know where and when to use each one.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar