• Resolved testovac

    (@testovac)


    Hello,
    I don’t want display header (cover and profile photo and more) on user message page and notification. How can I do with some php snippet pls?

    Sorry for my off topic. But I really don’t know where to find it. I’m sorry and if anyone knows, please write me here, thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mathieu Viet

    (@imath)

    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

    Thread Starter testovac

    (@testovac)

    Hello, thx but i cant find solution. If I change something in the index-component-messages.php file, the changes will be reflected. It’s OK. But I can’t find the part to replace?

    Is this the right way?

    get_template_part( ‘template-parts/content/entry’, ‘page’ );

    What is the path to that file?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP snippet for remove bp header from messages?’ is closed to new replies.