All things Shopify and commerce
Hi all,
I've seen screenshots of the Shopify richtext field that by default shows all formatting options (ai, paragraph, bold, italic, link, bulleted list, numbered list, etc.) like this:
And then sometimes I've seen limited formatting options (only bold, italic, and link) like this:
In other words, in my schema, is there some sort of input settings to allow me to display only the bold, italic, and link options?
My schema looks like this:
{% schema %}
{
"name": "Example Name",
"tag": "section",
"settings": [
{
"type": "richtext",
"id": "rich_text",
"label": "Rich Text"
}
]
}
{% endschema %}
Thank you for taking a look! Any help is much appreciated.
Solved! Go to the solution
This is an accepted solution.
Use inline_richtext type not richtext type
https://shopify.dev/docs/themes/architecture/settings/input-settings#inline_richtext
afaik no way to granularly control the formatting options for the full rich text input setting
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
This is an accepted solution.
Use inline_richtext type not richtext type
https://shopify.dev/docs/themes/architecture/settings/input-settings#inline_richtext
afaik no way to granularly control the formatting options for the full rich text input setting
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Ha! This is perfect, thank you Paul. I totally missed this input_richtext option in the list. Wewww!
Same I always have to double check richtext when I can't remember what the settings are for richtext to only have 1 control, like making it a list builder.
Because it's so non-intuitive and silly for there to be two separate controls.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
Haha, right?!
Hi Paul,
I have been using this "inline_richtext" type now for a few pages, but I just noticed you can't hit "enter" of "shift + enter" for a line break, haha.. oh man. Frustrating that you can use hard returns with a "textarea" type and the "richtext" type but for whatever reason for the "inline_richtext", they just say no, no line breaks for you!
I don't see any ways around this, unless you happen to know something that maybe I'm missing here?
User | RANK |
---|---|
43 | |
40 | |
24 | |
24 | |
22 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023