Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to use mhchem in wordpress?

The Mathjax plugin provides a filter named mathjax_config that can be used to add config parameters, something similar to this should do the trick:

add_filter( 'mathjax_config', function() {
    return ['Tex' => [ 'extensions'=> [ 'path/to/mchem.js'] ] ];
});

In the event you’d like to remove dependency on the plugin, you’ll need to enqueue the mathjax library, whitelist all the relevant tags so they aren’t

Related Posts:

  1. Matrix problem with MathJax plugin [closed]
  2. Conflict between mathax and wp-Typography
  3. custom configuration for a mathjax-latex installation [closed]
  4. Recommendations for a LaTeX Plugin? [closed]
  5. Using MathJax in text
  6. Compatibility of MathJax extension and JetPack [closed]
  7. Writing LaTeX formulas with MathJax on WordPress site: the simplest way (possibly without affecting header.php)?
  8. MathJax inside shortcode
  9. Export blog posts with MathJax to LaTeX document?
  10. Making Mathjax dynamic so it renders input without page refresh
  11. Options for math equations rendering in WP in own server
  12. Is there any better way to write math in latex other than $latex **$
Categories plugin-mathjax Tags plugin-mathjax
What is the recommended way to be notified of security updates to my plugins? [closed]
How to add text & call to action button to featured image on homepage?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress