Skip to content

Commit

Permalink
fix #817
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Jul 18, 2024
1 parent e1dc75e commit 0279ce4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions App/Setup/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,18 @@ public function _enqueue_block_assets() {
);

if ( apply_filters( 'snow_monkey_blocks_enqueue_fallback_style', ! Blocks\is_pro() ) ) {
wp_enqueue_style(
'snow-monkey-blocks-fallback',
SNOW_MONKEY_BLOCKS_DIR_URL . '/dist/css/fallback.css',
array(),
filemtime( SNOW_MONKEY_BLOCKS_DIR_PATH . '/dist/css/fallback.css' )
);
if ( ! wp_style_is( 'sass-basis-core' ) ) {
wp_dequeue_style( 'sass-basis-core' );
}

if ( ! wp_style_is( 'sass-basis' ) ) {
wp_enqueue_style(
'sass-basis',
SNOW_MONKEY_BLOCKS_DIR_URL . '/dist/css/fallback.css',
array(),
filemtime( SNOW_MONKEY_BLOCKS_DIR_PATH . '/dist/css/fallback.css' )
);
}
}

if ( is_admin() ) {
Expand Down

0 comments on commit 0279ce4

Please sign in to comment.