Skip to content

Instantly share code, notes, and snippets.

@travislima
Last active March 24, 2023 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save travislima/e4b4618aa4141f911a3ba84bd24d9f67 to your computer and use it in GitHub Desktop.
Save travislima/e4b4618aa4141f911a3ba84bd24d9f67 to your computer and use it in GitHub Desktop.
Hide the Paid Memberships Pro Username field using CSS
/*
*
* The following CSS code will hide the PMPro username field, label and the required asterisk.
* Add this CSS to your WordPress Customizer's Additional CSS section (WP Dashboard > Appearance > Customizer > Additional CSS)
* Code Recipe intended to be used along with the following gist: https://gist.github.com/travislima/4d599cc0b6169ef7ee7514442f289123
*
*/
.pmpro_checkout-field-username {
display: none;
}
@laurenhagan0306
Copy link

This recipe is included in the blog post on "Customizing Usernames on Your Membership Site" at Paid Memberships Pro here: https://www.paidmembershipspro.com/customizing-usernames-for-your-membership-site/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment