Title: [Plugin: MathJax-LaTeX] multisite installation
Last modified: August 20, 2016

---

# [Plugin: MathJax-LaTeX] multisite installation

 *  [andrea.cantieni](https://wordpress.org/support/users/andreacantieni/)
 * (@andreacantieni)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mathjax-latex-multisite-installation/)
 * I tried to install the plugin in a multisite enabled WordPress installation and
   encountered some issues. I suggest the following modifications:
    1) inside function
   init(): `add_action('admin_footer', array(__CLASS__, 'add_script'));` `add_action('
   admin_footer', array(__CLASS__, 'unconditional'));` to enable script in admin
   pages. 2) line 100: `'syntax' => get_option('latex_syntax')?:'inline'` to set
   syntax, if no db entry exists (occurs in multisite installations if you are not
   the site admin, who installed the plugin). 3) line 358/359: `$config_file = get_option('
   mathjax_location')?:plugins_url("MathJax/MathJax.js",__FILE__);` `$config_file
   = str_replace('MathJax.js', 'config/'.(get_option('mathjax_config')?:'default').'.
   js', $config_file);` to get location and config, if no db entry exists (occurs
   in multisite installations if you are not the site admin and you open the admin
   section before any other page containing latex-syntax).
 * [http://wordpress.org/extend/plugins/mathjax-latex/](http://wordpress.org/extend/plugins/mathjax-latex/)

The topic ‘[Plugin: MathJax-LaTeX] multisite installation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mathjax-latex.svg)
 * [MathJax-LaTeX](https://wordpress.org/plugins/mathjax-latex/)
 * [Support Threads](https://wordpress.org/support/plugin/mathjax-latex/)
 * [Active Topics](https://wordpress.org/support/plugin/mathjax-latex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mathjax-latex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mathjax-latex/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [andrea.cantieni](https://wordpress.org/support/users/andreacantieni/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mathjax-latex-multisite-installation/)
 * Status: not resolved