Online Store 2.0 edit HTML source code in text box

When editting text, it is not possible to view the HTML code. This causes a few problems:

  • Hitting “ENTER” creates a

    , while hitting “SHIFT + ENTER” creates a
    . There is no way to view which ones were made or correcting them, but it results in different code.

  • Adding small code, such as a list item elements
  • , is not possible.

Is there a way to edit the HTML code in these boxes?

The the below screenshot, where I now used a dot instead of a

  • , but that’s no way of properly making a description for a product.

  • Hi there,
    Jack from OpenThinking here!

    TL;DR: No, it is not possible.
    It is not possible to edit the HTML of the Richtext editor in Theme editor. Whoever you can manipulate the output, to a certain extent, with some Liquid logic inside the theme files.

    let me know if this works for your. If yes; accept my answer and give me thumbs up! Thank you.

    Hi @pierre-oord

    You can refer to this documentation to change the input settings to suit your needs.

    https://shopify.dev/themes/architecture/settings/input-settings

    If it it not possible to show the HTML source on a HTML editor field, then it would be smart if Shopify would not allow people to make paragraphs by pressing ENTER. Then we can be sure the input is consistent.

    1 Like