Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wp_enqueue_script( 'MathJaxConfiguration', get_template_directory_uri() . '/js/MathJaxCfg.js', null, false, false );
- add_filter( 'script_loader_tag', 'filter_script_MathJax', 10, 3 );
- function filter_script_MathJax( $tag, $handle, $src ){
- if ( 'MathJaxConfiguration' === $handle ) {
- return str_replace( 'text/javascript', 'text/x-mathjax-config', $tag );
- }
- return $tag;
- }
Add Comment
Please, Sign In to add comment