Advertisement
wclendining

FirstChildFUNCTIONSPHP

Apr 9th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2. function theme_enqueue_styles() {
  3.  
  4.     $parent_style = 'parent-style';
  5.  
  6.     wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
  7.     wp_enqueue_style( 'child-style',
  8.         get_stylesheet_directory_uri() . '/style.css',
  9.         array( $parent_style )
  10.     );
  11. }
  12. add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement