Skip to:
Content
Pages
Categories
Search
Top
Bottom

add_theme_support breaks buddypress


  • jedifunk
    Participant

    @jedifunk

    hey all;

    i’m using my own theme (from _s), have add_theme_support('buddypress'); in the after_theme_setup action in my functions.php file in the theme.

    i also have wp_enqueue_script calling to /buddypress/bp-templates/bp-legacy/js/buddypress.js which does load the the file.

    problem is that nothing loads, just blank where the_content should output buddypress. so no activity, no members.

    if i comment out the add_theme_support function, everything shows up as expected, but its style with all the default buddypress css (which is what i was planning to override with my own css).

    my understanding was that the add_theme_support was supposed to allow for this. it was working just fine in 1.8.1 and only the update to 1.9 killed it.

    i don’t have any other plugins installed, its a clean, new theme…

    what am i missing? any help is very much appreciated.

    thanks.

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

  • modemlooper
    Moderator

    @modemlooper

    remove those, you don’t have to add anything to a theme. Was there a reason you thought to add this?

    To override css create a css folder in your theme folder and copy over the buddypress.css file from /bp-templates/bp-legacy

    Then edit the buddypress.css file in your theme folder


    jedifunk
    Participant

    @jedifunk

    @modemlooper thanks for the help!

    yes, the documentation on this site for the theme override is extremely limited and definitely confusing…

    the single page on this site talking about the add_theme_support function was very vague, and not worded well… certainly giving the impression that it WAS necessary in order to override.

    to use custom pages/loops/etc, do i still need to have the /buddypress/activity/file.php in my theme?

    lastly, i don’t like the idea of being required to load another css file to override styles… i’d prefer to just use the styles.css file. it also makes writing the css a pain since everything requires the use of the #buddypress ID… not very elegant IMO.

    with 1.8 it was working great, i had the default styles off, and was able to add my bootstrap classes, and style only what i needed.

    am i missing something here?


    modemlooper
    Moderator

    @modemlooper

    just leave buddypress.css blank if you want to kill all bp styles from being loaded by the plugin. You could also deregister the css file from getting loaded

    Template overiding works in same manner as the css file.


    modemlooper
    Moderator

    @modemlooper

    wp_dequeue_style(‘buddypress’)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add_theme_support breaks buddypress’ is closed to new replies.
Skip to toolbar