Morning,
What would be the best method of manually installing highlight.js in WordPress? I reviewed the instructions, but wanted to know if there is a way to do this via the child theme’s functions.php file.
My child theme’s functions.php file currently looks like:
<?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 );
add_filter('widget_text', 'do_shortcode');
add_filter('jpeg_quality', function($arg){return 100;});
?>