Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Member Pages Not Working


Brandon Allen
Participant

@cnorris23

@cupedoll

Here’s what you’ll need:

/* Load the AJAX functions for the theme */
require_once( TEMPLATEPATH . '/_inc/ajax.php' );

/* Load the javascript for the theme */
wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ) );

/* Add the JS needed for blog comment replies */
function bp_dtheme_add_blog_comments_js() {
if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
}
add_action( 'template_redirect', 'bp_dtheme_add_blog_comments_js' );

If you’re just customizing the default theme like anaon (or at least not heavily customizing), then your best route to go is to create a child theme. All of the ajax stuff will be handled by the default theme, and you don’t have to worry about things like this.

https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

Skip to toolbar