Created
August 19, 2021 14:58
-
-
Save javanigus/1f52a008635f54fb3c4ff4627f463685 to your computer and use it in GitHub Desktop.
Wordpress minimum functions.php for child theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mychildtheme_enqueue_styles() { | |
$parent_style = 'parent-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'child-style', | |
get_stylesheet_directory_uri() . '/style.css', | |
array( $parent_style ) | |
); | |
} | |
add_action( 'wp_enqueue_scripts', 'mychildtheme_enqueue_styles' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment