Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 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_locale_css' ) ):
  9. function chld_thm_cfg_locale_css( $uri ){
  10. if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
  11. $uri = get_template_directory_uri() . '/rtl.css';
  12. return $uri;
  13. }
  14.  
  15. function wpcninja_translation() {
  16. load_child_theme_textdomain( 'Divi', get_stylesheet_directory() . '/lang/theme/' );
  17. load_child_theme_textdomain( 'et_builder', get_stylesheet_directory() . '/lang/builder/' );
  18. }
  19. add_action( 'after_setup_theme', 'wpcninja_translation' );
  20.  
  21. endif;
  22. add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
  23.  
  24. if ( !function_exists( 'child_theme_configurator_css' ) ):
  25. function child_theme_configurator_css() {
  26. wp_enqueue_style( 'chld_thm_cfg_child', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( ) );
  27. }
  28. endif;
  29. add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 10 );
  30.  
  31. // END ENQUEUE PARENT ACTION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement