Skip to content

Instantly share code, notes, and snippets.

@EvanHerman
Last active March 2, 2016 21:47
Show Gist options
  • Save EvanHerman/4a23d7405ff3c55a68a9 to your computer and use it in GitHub Desktop.
Save EvanHerman/4a23d7405ff3c55a68a9 to your computer and use it in GitHub Desktop.
Enqueue Parent Theme Style + Animate.css from child theme root
<?php
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' );
function my_enqueue_assets() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'animate-css', get_stylesheet_directory_uri() . '/animate.min.css' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment