Skip to content

Commit dc2182c

Browse files
authored
Update functions.php
1 parent 5a80944 commit dc2182c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

functions.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ function jonny_and_taylor_setup() {
4040
)
4141
);
4242

43-
// Disable loading core block inline styles.
44-
add_filter( 'should_load_separate_core_block_assets', '__return_false' );
45-
4643
// Remove core block patterns.
4744
remove_theme_support( 'core-block-patterns' );
4845
}
@@ -84,6 +81,7 @@ function jonny_and_taylor_scripts() {
8481
$asset = jonny_and_taylor_asset_metadata( 'theme' );
8582
wp_enqueue_style( 'jonny-and-taylor-styles', get_theme_file_uri( '/assets/theme.css' ), array(), $asset['version'] );
8683
wp_style_add_data( 'jonny-and-taylor-style', 'rtl', 'replace' );
84+
wp_style_add_data( 'jonny-and-taylor-style', 'path', get_theme_file_path( '/assets/theme.css' ) );
8785

8886
wp_enqueue_script( 'jonny-and-taylor-script', get_theme_file_uri( '/assets/theme.js' ), $asset['dependencies'], $asset['version'], true );
8987

0 commit comments

Comments
 (0)