Skip to:

How to remove sidebar contents for register page and forum page in Buddypress?

  • bluevert


    I’ve installed a theme “travel log ” with buddypress. But the problem is when you go to register page ,it always show the contents of right sidebar as showed in blog pages like search,recent articles,Categories,comment,…
    Not beauty and Clarity. It’s same when you create a new group,for example like this

    How to remove thess sidebar contents for register page and group page?

    The page I need help with:

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

  • Venutius


    Have you tried setting the page to have no sidebars?



    @bluevert You will need to override the template files inside the child theme.
    Follow the steps mentioned here

    Template Hierarchy

    Most of the time BP will use page.php since that template file exists in the majority of WordPress themes. However, if you wanted to style BuddyPress pages differently than a regular WordPress page, you could add a template file named buddypress.php to your theme’s directory and BP would use that template instead since that file is ahead of page.php in the hierarchy above.

    After creating buddypress.php inside child theme, you can comment this line

    do_action( 'travel_log_sidebar' );

    it will remove sidebar from all BuddyPress pages, if you need to keep on some BP pages, you can use conditional logic.

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