Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Adding widget areas to default theme? (3 posts)

Started 10 months, 2 weeks ago by: kimmc

  • I’m trying to figure out how to add widget areas to the bp default theme. Most of the info I’ve found shows how to add them to the sidebar. But what I want are widget areas above the center content area. I’m not understanding how to do that.
    What I would like is to have one area to put an image or article rotater in and another to show the latest community activity.

    Any help is really appreciated!

  • Profile picture of @mercime @mercime said 10 months, 2 weeks ago:

    First, do not make revisions in bp-default theme. Revisions will be overwritten when BP is upgraded.

    Instead,
    - create a child theme of bp-default theme, e.g. mybpproject,

    http://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/

    - create a functions.php file and put it in your child theme folder. Define new widget/s here (name, ID, etc)
    - copy over the template file from bp-default theme to your child theme folder (following directory structure) then add the call to dynamic_sidebar in that template.

  • Thanks, I did set up a child theme. Although I still didn’t have any luck. I’ll keep playing with it, as I’d like to learn how it works. But I did finally find a theme I liked in the mean time.