Memberlite sets default CSS selectors or “class” names that control what elements are modified by Customizer colors and font settings. This code recipe demonstrates how to use the memberlite_defaults filter to add or remove CSS selectors from the any of the defaults in that global variable.
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.
You can see all the filterable values in the /memberlite/inc/defaults.php file on GitHub. This will show you what default values can be customized for your Memberlite site.
Code Author: Kim
Kim is a Managing Partner at Stranger Studios, developers of Memberlite, Paid Memberships Pro, and Sitewide Sales. She has her hand in all aspects of the development, management, and marketing for the product and the team. She oversees frontend development for the our plugins and themes.