Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joseph-farruggio
Created May 6, 2019 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseph-farruggio/cefbb198788a20b114260132e2af0564 to your computer and use it in GitHub Desktop.
Save joseph-farruggio/cefbb198788a20b114260132e2af0564 to your computer and use it in GitHub Desktop.
<?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