diff --git a/functions.php b/functions.php index 70b1469..0dec35f 100644 --- a/functions.php +++ b/functions.php @@ -34,7 +34,12 @@ add_action( 'enqueue_block_editor_assets', 'enqueue_editor_styles' ); function autonomic_theme_scripts() { // this is also for block styles - wp_enqueue_script( 'autonomic-block-styles', get_theme_file_uri( '/js/block-styles.js' ), array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ), filemtime( get_theme_file_uri( '/js/block-styles.js' ) )); + wp_enqueue_script( + 'autonomic-block-styles', + get_template_directory() . '/js/block-styles.js', + array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ), + filemtime( get_template_directory() . '/js/block-styles.js' ) + ); } add_action( 'enqueue_block_editor_assets', 'autonomic_theme_scripts' );