Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-core widgets don’t work

  • @i05938

    Member

    Hello, any response would be so appreciated. I am using a custom theme, and when I put the widget of the members and groups with the links above it “newest” “active” and “popular” when I click those links, it just takes me to the directory page.

    How do I make it so it loads the ajax and sorts it out like it should?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @hnla

    Participant

    Sounds like an issue with the custom theme, does this happen if you use the default BP theme?

    @i05938

    Member

    Thanks so much for the response!!! Yes, it’s my custom theme, the default works fine. I am wondering if it’s the bp default theme’s functions.php?

    Thanks again!

    @djpaul

    Keymaster

    You’ll need to include the /buddypress/bp-themes/bp-default/_inc/ajax.php

    @i05938

    Member

    @djpaul, thanks, but I tried putting

    `// 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’ ) );`

    But I got: `Fatal Error: required_once. No such file in directory`

    And I did change the paths in the functions to match where they were and nothing changed.

    @i05938

    Member

    Actually, I figured it out, I put the ajax.php in an _inc folder in my theme so it would work, and I got a fatal error: cannot re-declare, in the bp-themes/bp-default/_inc/ajax.php

    So that means I already have the ajax. Every ajax loader is working fine except the widgets.

    @joshua_d

    Member

    Sounds like a class issue, been a while since I looked but look at the class of the sidebar in the default theme & use that in your custom theme.

    @i05938

    Member

    “class?” :D

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘bp-core widgets don’t work’ is closed to new replies.
Skip to toolbar