Last active
October 24, 2016 10:11
-
-
Save BinaryMoon/1782b77048f87ebcbad4cecd3d629b13 to your computer and use it in GitHub Desktop.
WordPress Child Theme Example
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 child_enqueue_parent_styles() { | |
wp_enqueue_style( 'child-parent-style', get_template_directory_uri() . '/style.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'child_enqueue_parent_styles' ); |
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
/* | |
Theme Name: mytheme | |
Theme URI: https://prothemedesign.com | |
Description: A description for the child theme | |
Version: 1.0 | |
Author: Pro Theme Design | |
Author URI: https://prothemedesign.com | |
Template: granule | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment