Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/4ba5d7122715183d4aefe04caf06c2d8 to your computer and use it in GitHub Desktop.
Save kimcoleman/4ba5d7122715183d4aefe04caf06c2d8 to your computer and use it in GitHub Desktop.
Code and CSS to improve the appearance of the Membership tab of the BuddyBoss single profile.
/**
* Code and CSS to improve the appearance of the Membership tab of the BuddyBoss single profile.
*
* Place this CSS in the Appearance > Customize > Additional CSS field:
* #pmpro_account .pmpro_box { margin-bottom: 3em; }
* #pmpro_account .pmpro_box h2 { border-bottom: 1px solid var(--bb-content-border-color); margin: 30px 0; padding-bottom: 20px; }
*/
function my_pmpro_buddyboss_profile_account_shortcode( $content ) {
$content = '<div class="bp-profile-wrapper need-separator"><div class="bp-profile-content"><div class="group-separator-block">[pmpro_account sections="membership,invoices"]</div></div></div>';
return $content;
}
add_filter( 'pmpro_buddypress_profile_account_shortcode', 'my_pmpro_buddyboss_profile_account_shortcode' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment