PHP snippet for remove bp header from messages?

[ad_1]

Hi @testovac

You can achieve this using the BP Theme hierarchy. You simply need to check what is you active template pack from the BuddyPress panel of the WordPress site-health info tab. Let’s say it’s BP Nouveau.

From your active theme create a new PHP file named:

/wp-content/themes/your-active-theme/buddypress/members/single/index-component-messages.php

Into this file copy the content of your theme’s page.php template and replace the post loop with <div id="buddypress"></div>

Inside this div paste the content of:

  1. the /wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/single/member-header.php
  2. then /wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/single/messages.php

Repeat all these steps replacing messages by notifications

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer