mirror of
https://ghproxy.net/https://github.com/elementor/hello-theme-child.git
synced 2025-10-04 03:51:00 +08:00
36 lines
765 B
PHP
36 lines
765 B
PHP
<?php
|
|
/**
|
|
* Theme functions and definitions.
|
|
*
|
|
* For additional information on potential customization options,
|
|
* read the developers' documentation:
|
|
*
|
|
* https://developers.elementor.com/docs/hello-elementor-theme/
|
|
*
|
|
* @package HelloElementorChild
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
define( 'HELLO_ELEMENTOR_CHILD_VERSION', '2.0.0' );
|
|
|
|
/**
|
|
* Load child theme scripts & styles.
|
|
*
|
|
* @return void
|
|
*/
|
|
function hello_elementor_child_scripts_styles() {
|
|
|
|
wp_enqueue_style(
|
|
'hello-elementor-child-style',
|
|
get_stylesheet_directory_uri() . '/style.css',
|
|
[
|
|
'hello-elementor-theme-style',
|
|
],
|
|
HELLO_ELEMENTOR_CHILD_VERSION
|
|
);
|
|
|
|
}
|
|
add_action( 'wp_enqueue_scripts', 'hello_elementor_child_scripts_styles', 20 );
|