Advertisement
matejcicak

functions.php

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