Created
April 11, 2024 20:17
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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