SHARE
TWEET

Untitled

a guest Nov 12th, 2015 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function theme_enqueue_styles() {
  2.  
  3.     $parent_style = 'parent-style';
  4.  
  5.     wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
  6.     wp_enqueue_style( 'child-style',
  7.         get_stylesheet_directory_uri() . '/style.css',
  8.         array( $parent_style )
  9.     );
  10. }
  11. add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top