Last active
January 18, 2025 18:58
-
-
Save stevenroh/ee0fe08eec2f9a798f571a52d1d7e3b3 to your computer and use it in GitHub Desktop.
Force light mode for blockify theme
This file contains hidden or 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 | |
/* | |
* Plugin Name: Force light mode | |
* Plugin URI: https://stevenroh.ch | |
* Description: Force light mode for blockify theme | |
* Version: 0.1 | |
* Author: Steven Roh | |
* Author URI: https://stevenroh.ch | |
*/ | |
add_filter( 'body_class', 'rohs_force_light_mode', 999); | |
function rohs_force_light_mode( array $classes ): array { | |
$classes[] = 'is-style-light'; | |
return array_unique( $classes ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks it works fine!