Save
This commit is contained in:
@@ -271,3 +271,24 @@ if ( ! function_exists( 'hello_elementor_body_open' ) ) {
|
||||
require HELLO_THEME_PATH . '/theme.php';
|
||||
|
||||
HelloTheme\Theme::instance();
|
||||
|
||||
function my_custom_styles() {
|
||||
wp_enqueue_style(
|
||||
'custom-style',
|
||||
get_template_directory_uri() . '/assets/css/custom.css',
|
||||
array(),
|
||||
filemtime(get_template_directory() . '/assets/css/custom.css')
|
||||
);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'my_custom_styles');
|
||||
|
||||
function my_custom_js() {
|
||||
wp_enqueue_script(
|
||||
'custom-script',
|
||||
get_template_directory_uri() . '/assets/js/custom.js',
|
||||
array('jquery'),
|
||||
filemtime(get_template_directory() . '/assets/js/custom.js'),
|
||||
true
|
||||
);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'my_custom_js');
|
||||
|
||||
Reference in New Issue
Block a user