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 );
What is this for in the child theme? Is it necessary?
I got the child theme from here: https://docs.generatepress.com/article/using-child-theme/
As it is in there, I assume it’s necessary, but I have seen GP’s child themes from other developers not including that.