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
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with 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
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with 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.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with 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?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024