Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of removing a class name selector from the defaults for Memberlite primary background color elements.
<?php
/**
* Example of removing a class name selector from the defaults for Memberlite primary background color elements.
*
* 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.
*
*/
function sample_custom_memberlite_defaults( $memberlite_defaults ) {
$memberlite_defaults['color_primary_background_elements'] = '#mobile-navigation, #mobile-navigation-height-col, .masthead, .btn_primary, .btn_primary:link, .menu-toggle, .bg_primary, .banner_primary, .has-color-primary-background-color';
return $memberlite_defaults;
}
add_filter( 'memberlite_defaults', 'sample_custom_memberlite_defaults' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment