Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Created September 1, 2021 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/cbdfababc12050d5cb1a60722d027a8c to your computer and use it in GitHub Desktop.
Save kimcoleman/cbdfababc12050d5cb1a60722d027a8c to your computer and use it in GitHub Desktop.
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