HELP - Generated Blocks In Product Information 'Dawn Theme'

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

you can’t duplicate the TEXT block ? @thomasb1998

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!

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 :waving_hand: 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 :down_arrow: :down_arrow: :down_arrow:.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Hey @thomasb1998 did you ever come right with this issue. I have the exact same problem, hoping you have a solution?? :slight_smile:

Please let me know.

Thanks
Rey

AI will generate a section only, which will cause any issues for the default sections of the theme. If you want to add a custom block, convert the theme to liquid and add it to Custom HTML instead!