Skip to:
Content
Pages
Categories
Search
Top
Bottom

custom buddypress-functions.php?

  • @phucitol

    Participant

    I inherited a WP/BP/bbPress project. I’ve been trying to understand how the last developer configured everything, including custom buddypress changes. There is a buddypress-functions.php file in my themes directory. In functions.php several buddypress js files are loaded from a theme subfolder “/static/js/” including mentions.min.js, jquery.atwho.min.js, jquery.caret.min.js, along with other buddypress core js files.

    I understand that there are situations where you would have your own buddypress-functions.php file and the /theme/buddypress/*/ folders for customization, but it can’t possibly be the right thing to be loading your own copies of buddypress js files.

    When I remove the js files from enqueuing and delete the buddypress-functions.php I would expect that the installation would revert to using the files in the /plugins/buddypress/ folder but things like @mentions stop working when I make these changes (although a lot of buddypress functionality continues to work).

    I guess my question is how do I get the theme to actually use the proper buddypress files from the plugin and am I correct that loading static old js files for buddypress is a totally insane thing to do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @danbp

    Participant

    Hi,
    normally you haven’t to touch mentions.min.js, jquery.atwho.min.js, jquery.caret.min.js, along with other buddypress core js files.

    If you need to customize buddypress JS, use buddypress.js from within the child theme.
    about js and child theme:
    https://buddypress.org/support/topic/overriding-global-js-with-buddypress-js-not-working/

    and other customization:

    bp-custom.php

    @phucitol

    Participant

    Thanks for the response, I had already used bp-custom.php to build a custom post-form before. I’ll read that thread on child theme js. Thank you for confirming for me that there was no reason for the last dev to alter those core js files.

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