Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1105 Widoki

Does anyone know how to add special characters into the website e.g. subscript & superscript? I am having no luck even if I edit the html.

I am running Odoo 17 Enterprise on-premise.

Awatar
Odrzuć
Najlepsza odpowiedź

To add special characters like subscript and superscript in Odoo 17's website, you can directly insert HTML entities or use inline CSS styling. Here are a few methods to accomplish this, especially if you’re editing the HTML of website pages or blocks:

Odoo’s website editor accepts standard HTML entities, so you can manually add subscript and superscript characters using the appropriate HTML tags:

  • Superscript: Wrap the text in <sup>...</sup>.
  • Subscript: Wrap the text in <sub>...</sub>.
Example:

If you’re editing the HTML directly, you can insert:

<p>H<sub>2</sub>O is water, and E = mc<sup>2</sup> is Einstein's equation.</p>

This will render:

  • "H₂O" (H₂ as subscript)
  • "E = mc²" (² as superscript


Hope this helps

Daniel

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sty 25
833
2
lis 24
2154
0
lis 24
1011
3
lip 25
1945
1
cze 25
2233