Please or Register to create posts and topics.

Where can I place the MathJax header code?

I want to use MathJax in the forum posts. On regular Wordpress pages I was able to add the code to header.php in my child theme. On phpBB, I can add the code in style\templates\overall_header.html. However, it still does not render inside of the asgaros forum posts. Is there an equivalent “overall_header.html” template file somewhere?

 

The code I need to add to the header is:

<script src=”https://polyfill.io/v3/polyfill.min.js?features=es6″></script>
<script type=”text/javascript” id=”MathJax-script” async
src=”https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-chtml.js”>
</script>

Thank you!

– Jason

 

Please respond. This should be an easy answer. I just don’t know where to put the code…

– Jason

Again,

 

I would really appreciate a reply on this.

 

Thank you!

 

  • Jason

@mudpijasonenglert-com  There is an action hook:  asgarosforum_enqueue_css_js

You should be able to use it to load your javascript.  I don’t know quite how but I’m sure some trial and error experimenting will lead you to your goal.

mudpi@jasonenglert.com has reacted to this post.
mudpi@jasonenglert.com

I don’t know how hooks work, but I will do my research.

Thank you so much for the response!

  • Jason