Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi all, I hope someone can help me with this one.
I'm currently designing a website https://soccerposterco.com/ in dawn and I'm trying to use the new sidekick ai to create some custom blocks within the 'product information area'.
When I try and ask ai it just creates the section at the bottom of my website and I can't drag/drop it into the 'product information area'.
I'm hoping there's a relatively straight forward work around for this!
Thank you,
Tom
Hi,
Hope this will help.
- Opened Dawn theme code
- Edited main-product.liquid
- Add a new custom block in schema
Code example custom block
{
"type": "custom-text",
"name": "Custom Text Block",
"settings": [
{
"type": "text",
"id": "custom_text",
"label": "Custom Text",
"default": "Write your cool product info here!"
}
]
},
- Rendered block in HTML
Hi sorry this isn't working for me, I paste the code at the end in schema but it doesn't seem to be saving properly with this error... apologies I'm a bit of a novice when it comes to coding so not sure if there's something obviously wrong!
you can't duplicate the TEXT block ? @thomasb1998
Hi, sorry no this doesn't help. I'm trying to create a block which will allow me to utilise the sidekick tool within the product information area. Hopefully that's clearer - apologies if it wasn't before!
Hi @thomasb1998 👋 It's dumb but the "block" the assistant makes gets autowrapped in a section.
You'd need to do advanced theme customization to convert it into an actual block.
If you don't need settings for the block and that product info area supports a custom-liquid block,
Then dig around in the theme code-editor for that generated block and copy it's liquid contents into a custom-liquid block you add yourself to the relevant section.
If you need this customization then contact me for services.
Contact info in forum signature below ⬇ ⬇ ⬇.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
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