правки test1

This commit is contained in:
2026-04-05 22:51:45 +03:00
parent f72b5b0a39
commit b82827f99a
3 changed files with 5 additions and 11 deletions

View File

@@ -438,7 +438,7 @@ function twentytwentyfour_test1_assets() {
);
}
if ( is_page( 'test1' ) && file_exists( $js_file ) ) {
if ( ( is_front_page() || is_page( 'test1' ) ) && file_exists( $js_file ) ) {
wp_enqueue_script(
'twentytwentyfour-test1-script',
home_url( '/index3.js' ),