Guest User

Functions.php

a guest
Jan 8th, 2018
1,684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php
  2. // Exit if accessed directly
  3. if ( !defined( 'ABSPATH' ) ) exit;
  4.  
  5. // BEGIN ENQUEUE PARENT ACTION
  6. // AUTO GENERATED - Do not modify or remove comment markers above or below:
  7.  
  8. if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
  9. function chld_thm_cfg_parent_css() {
  10. wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( ) );
  11. }
  12. endif;
  13. add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
  14.  
  15. if ( !function_exists( 'child_theme_configurator_css' ) ):
  16. function child_theme_configurator_css() {
  17. wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'chld_thm_cfg_parent','libretto-style' ) );
  18. }
  19. endif;
  20. add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css' );
  21.  
  22. // END ENQUEUE PARENT ACTION
Add Comment
Please, Sign In to add comment