Skip to content

Instantly share code, notes, and snippets.

@stevenroh
Last active January 18, 2025 18:58
Show Gist options
  • Save stevenroh/ee0fe08eec2f9a798f571a52d1d7e3b3 to your computer and use it in GitHub Desktop.
Save stevenroh/ee0fe08eec2f9a798f571a52d1d7e3b3 to your computer and use it in GitHub Desktop.
Force light mode for blockify theme
<?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 );
}
@tomilagom
Copy link

thanks it works fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment