This commit is contained in:
2026-05-22 15:41:47 +02:00
parent 88b9b89a02
commit 16d3199ffe
5 changed files with 77 additions and 0 deletions

View File

@@ -271,3 +271,25 @@ if ( ! function_exists( 'hello_elementor_body_open' ) ) {
require HELLO_THEME_PATH . '/theme.php';
HelloTheme\Theme::instance();
function hello_custom_styles() {
wp_enqueue_style(
'hello-custom-style',
get_stylesheet_directory_uri() . '/assets/css/custom.css',
array(),
filemtime(get_stylesheet_directory() . '/assets/css/custom.css')
);
}
add_action('wp_enqueue_scripts', 'hello_custom_styles', 9999);
function hello_custom_scripts() {
wp_enqueue_script(
'hello-custom-script',
get_stylesheet_directory_uri() . '/assets/js/custom.js',
array('jquery'),
filemtime(get_stylesheet_directory() . '/assets/js/custom.js'),
true
);
}
add_action('wp_enqueue_scripts', 'hello_custom_scripts', 9999);