This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function royeyal_enqueue_styles() { | |
if ( is_rtl() ) { | |
wp_enqueue_style('parent-theme-rtl', get_template_directory_uri() .'/rtl.css'); | |
wp_enqueue_style('local-theme-rtl', get_stylesheet_directory_uri() .'/css/rtl.min.css'); | |
} | |
} | |
add_action('wp_enqueue_scripts', 'royeyal_enqueue_styles', 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function royeyal_enqueue_styles() { | |
if ( is_rtl() ) { | |
wp_enqueue_style('parent-theme-rtl', get_template_directory_uri() .'/rtl.css'); | |
wp_enqueue_style('local-theme-rtl', get_stylesheet_directory_uri() .'/css/rtl.min.css'); | |
} | |
} | |
add_action('wp_enqueue_scripts', 'royeyal_enqueue_styles', 100); |