It is possible to add subscript and superscript in a WordPress page title? I need to add pages with "H2O" in the title.

I have been searching, but cannot find anything with answers... only a few non-answered threads on wordpress.org forums.


You can use markup in titles. H<sub>2</sub>O will work just fine. I would use H₂O with a real because markup will be stripped in title attributes and in feeds.

Note that WordPress will not create a pretty permalink for the correct character. The slug for my example will look like this: h2o-h%e2%82%82o.
You need my plugin Germanix URL to get h2o for both variants.

enter image description here

| improve this answer | |
  • Thanks. I had a DOH! moment. I was using a page template that didn't actually show the title and I thought <sub> </sub> was creating an error and displaying nothing... – Travis Pflanz Feb 7 '13 at 1:13
  • ...and thanks for the tip about HTML special characters. Definitely the way to go. – Travis Pflanz Feb 7 '13 at 1:29
  • @TravisPflanz See my update with a note about the permalink problem. – fuxia Feb 7 '13 at 1:34
  • My permalink did not do that. It is displayed as H<sub>2</sub>O. I did, however, add H2O to the "Redirection". – Travis Pflanz Feb 7 '13 at 3:45
  • I just realized the subscript didn't show in my comment - My permalink did not do that. It is displayed as H2O with the 2 subscript. I did, however, add H2O to the "Redirection" plugin to point to H(subscript 2)O. This should work correctly, right? – Travis Pflanz Feb 7 '13 at 4:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.