Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adapting BP to my needs: hooks, theme and template


  • od1fr
    Participant

    @od1fr

    Hi there!
    I’ve been playing around with BP for some weeks now. I think it’s a powerful tool, and I manage to adapt it to my needs. Mostly I’ve been working on a new theme, changing colours in SCSS files and editing some PHP and HTML lines.
    Yet I’m not sure I did it right. Should I have used templates? Or just hooks and filters?
    I didn’t find any clear comparison of those concepts in BP (and even for WP in general), so I would greatly appreciate if someone here could give me some explanation regarding this topic!
    Thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

  • Venutius
    Moderator

    @venutius

    BP has a large number of files that can be overloaded by copying them to your child-theme directory, these are located in plugins/buddypress/bp-nouveau (or bp-legacy) /buddypress for one off builds it’s usually easiest to overload the template file you require. If the solution needs to be re-useable then it’s better to build a plugin and use filter and action hooks. Also some things you can’t do with Template files alone.


    od1fr
    Participant

    @od1fr

    Thx Venutius for your answer.
    I guess you mean plugins/buddypress/bp-templates/bp-nouveau (or bp-legacy) /buddypress
    That’s what I did, so it seems understood well afterall 🙂


    Venutius
    Moderator

    @venutius

    That’s right, to overload them copy them into your themes/child-theme/buddypress directory, maintaining the directory structure and you will be able to edit at your leishure.

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