Sha256: 7a0ae2a75a5f1b1f26f090c5cca3d1af513a43e3bcc08028f6bca0e78b83f8b5

Contents?: true

Size: 1.43 KB

Versions: 12

Compression:

Stored size: 1.43 KB

Contents

.. _platform-wordpress:

===============================
Installing MathJax in WordPress
===============================

Note that there is a `WordPress plugin for MathJax
<http://wordpress.org/extend/plugins/mathjax-latex/>`_, so that may be a
better choice than editing the theme directly.

1. Open the WordPress admin interface.

2. In the administration menu on the left, open up the `Appearance`
   menu and click on the `Editor` submenu option.
 
     .. image:: ../images/wp_menu.png
 
   When you click on the editor option, WordPress should open up the
   first stylesheet in the current theme.
 
3. In the template list on the right side of the page, click on the
   header file (it should be ``header.php``).
 
     .. image:: ../images/wp_templates.png
 
   This part depends slightly on how your current theme is written.
   In the ``header.php`` file, look for the end-of-head tag,
   ``</head>``. If you find it, insert

   .. code-block:: html

       <script type="text/javascript" 
          src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
       </script>

   just before that.  Otherwise, insert the same code at the very
   bottom of the file.
 
4. Save the file.  This will enable MathJax with both TeX and MathML
   input, so you should be able to start adding mathematical content to
   your pages.  If you need to adjust the configuration, see
   :ref:`Configuring MathJax <loading>` for more details.

Version data entries

12 entries across 6 versions & 2 rubygems

Version Path
mathjax-rails-1.0.3 vendor/mathjax-MathJax-da8d488/docs/source/platforms/wordpress.rst
mathjax-rails-1.0.3 vendor/mathjax-MathJax-da8d488/docs/html/_sources/platforms/wordpress.txt
mathjax-rails-1.0.2 vendor/mathjax-MathJax-da8d488/docs/html/_sources/platforms/wordpress.txt
mathjax-rails-1.0.2 vendor/mathjax-MathJax-da8d488/docs/source/platforms/wordpress.rst
mathjax_rails-0.0.1 vendor/mathjax-MathJax-da8d488/docs/source/platforms/wordpress.rst
mathjax_rails-0.0.1 vendor/mathjax-MathJax-da8d488/docs/html/_sources/platforms/wordpress.txt
mathjax-rails-0.0.4 vendor/mathjax-MathJax-da8d488/docs/html/_sources/platforms/wordpress.txt
mathjax-rails-0.0.4 vendor/mathjax-MathJax-da8d488/docs/source/platforms/wordpress.rst
mathjax-rails-0.0.3 vendor/mathjax-MathJax-da8d488/docs/source/platforms/wordpress.rst
mathjax-rails-0.0.3 vendor/mathjax-MathJax-da8d488/docs/html/_sources/platforms/wordpress.txt
mathjax-rails-0.0.2 vendor/mathjax-MathJax-f5cd294/docs/source/platforms/wordpress.rst
mathjax-rails-0.0.2 vendor/mathjax-MathJax-f5cd294/docs/html/_sources/platforms/wordpress.txt