Created
May 6, 2019 14:52
-
-
Save joseph-farruggio/cefbb198788a20b114260132e2af0564 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* GeneratePress child theme functions and definitions. | |
* | |
* Add your custom PHP in this file. | |
* Only edit this file if you have direct access to it on your server (to fix errors if they happen). | |
*/ | |
function generatepress_child_enqueue_scripts() { | |
if ( is_rtl() ) { | |
wp_enqueue_style( 'generatepress-rtl', trailingslashit( get_template_directory_uri() ) . 'rtl.css' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'generatepress_child_enqueue_scripts', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment