![]() ![]() Working on this got me thinking… What other elements can you add to a WordPress title? Surely there must be more!Īs it turns out, I believe that ALL inline HTML elements will work, though most wouldn’t be particularly useful. Nice and easy! The “” HTML element simply causes the text to display as a superscript, while the element causes subscript. ![]() ® (replace the ® with your symbol or text of choice) ![]() Add the following code for superscript:.Navigate to the page, post, or product that you’d like to work on from the backend.Make sure you are logged in as an administrator (It will strip out your HTML otherwise).So, let’s hop to it! How to add superscript or subscript symbols to a WordPress title The secret lies in the fact that you can actually add HTML elements to the title of any WordPress page, assuming that you are an Admin. you’re here, you’ve like wanted to add the registered symbol (®) or trademark symbol (™) to the title of your WordPress post, page, or product, only to find that it won’t display as a superscript like you want! Or perhaps you’ve been wanting to add some other symbol, text, or number as superscript or subscript to your WordPress title but it just never seems to display right. ![]() Here is what Word does record for the replacement, it would need a bit of polishing: Wouldn't it be faster to do the whole thing with replace? You wouldn't have to check every character. I would be tempted to go for easiest way to get the end result - at the end, simply do a replace of and with an empty string "". This code is working good for each character of superscript and subscript.īut, I am looking for VBA which insert tags before and after complete superscript/subscript word/letters.Ĭ 1 2H 2 2O 1 1 and x 2 3 + y 3 9 7 + x 6 7Ībove VBA is giving following Output C12H22O11 and x23 + 圓97 + 圆7īut I am looking for this output C12H22O11 and x23 + 圓97 + 圆7 Public Sub MySubscriptSuperscript()įor Each myRange In ActiveDocument.StoryRanges I am trying to create VBA to insert before and after Supercript and subscript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |