Skip to:
Content
Pages
Categories
Search
Top
Bottom

page template for buddypress

  • @taadike

    Participant

    I’m using the latest wordpress default block theme. Where can I swap template for buddypress pages? Currently buddypress is using the default “pages” template for all buddypress related pages.
    How to apply another page template to buddypress? There is no way to “edit page”.

Viewing 1 replies (of 1 total)
  • @alfiez

    Participant

    To apply a different template for BuddyPress pages in the latest WordPress block theme, you can create a custom template (e.g., bp-custom-template.html) in your theme’s templates directory. Then, use a filter in your functions.php file to assign this template to BuddyPress pages using code like:

    php
    Copy code
    add_filter(‘template_include’, function($template) {
    if (bp_is_buddyPress()) {
    $custom_template = locate_template(‘bp-custom-template.php’);
    return $custom_template ?: $template;
    }
    return $template;
    });
    This allows you to customize the layout for BuddyPress pages without relying on the default “pages” template.

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