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.

Banner graphic for Add or Remove Default CSS Selectors from Memberlite Defaults

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.