Where can I place the MathJax header code?
Quote from mudpi@jasonenglert.com on February 26, 2022, 12:55 pmI 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
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
Quote from mudpi@jasonenglert.com on March 3, 2022, 4:22 amPlease respond. This should be an easy answer. I just don’t know where to put the code…
– Jason
Please respond. This should be an easy answer. I just don’t know where to put the code…
– Jason
Quote from mudpi@jasonenglert.com on March 7, 2022, 4:42 pmAgain,
I would really appreciate a reply on this.
Thank you!
- Jason
Again,
I would really appreciate a reply on this.
Thank you!
- Jason
Quote from Jim on March 7, 2022, 8:46 pm@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.
@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.
Quote from mudpi@jasonenglert.com on March 7, 2022, 10:39 pmI don’t know how hooks work, but I will do my research.
Thank you so much for the response!
- Jason
I don’t know how hooks work, but I will do my research.
Thank you so much for the response!
- Jason