The GeneratePress Theme by Tom 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 GeneratePress theme.


Creating Compatibility for GeneratePress and PMPro

GeneratePress by Tom

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 GeneratePress theme’s stylized button selector.


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.


Jarryd Long

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.