first commit
This commit is contained in:
16
wp-content/themes/solarify-child/functions.php
Normal file
16
wp-content/themes/solarify-child/functions.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
// Exit if accessed directly
|
||||
if ( !defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
if ( !function_exists( 'solarify_child_enqueue_styles' ) ):
|
||||
function solarify_child_enqueue_styles() {
|
||||
$parent_style = 'solarify-css-style';
|
||||
wp_enqueue_style( $parent_style, get_parent_theme_file_uri() . '/style.css' );
|
||||
wp_enqueue_style( 'child-style',
|
||||
get_theme_file_uri() . '/style.css',
|
||||
array( $parent_style ),
|
||||
wp_get_theme()->get('Version')
|
||||
);
|
||||
}
|
||||
endif;
|
||||
add_action( 'wp_enqueue_scripts', 'solarify_child_enqueue_styles' );
|
||||
Reference in New Issue
Block a user