The Storefront Theme by Automattic is a popular free theme available in the WordPress.org Themes Directory. This guide will help you make Paid Memberships Pro look better with the Storefront theme.
Creating Compatibility for Storefront and PMPro
Paid Memberships Pro includes a pmpro_element_class filter hook that theme authors and plugin developers can use to dynamically add CSS selectors to frontend pages of Paid Memberships Pro. In this recipe, we swap all uses of the
pmpro_btn selector with the Storefront theme’s stylized
The Code Recipe
Adding the Recipe to Your Website
You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.
Code Author: Jarryd
Jarryd works in Technical Support here at Paid Memberships Pro. He also develops for the core plugin and our library of Add Ons.