Created
September 1, 2021 14:59
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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