When I insert my app into a theme via app blocks, a div is created with what seems to be a unique generated id.
Besides visiting the page, inspecting it, and manually copying that ID, is there a way to automatically get it?
Thanks!
When I insert my app into a theme via app blocks, a div is created with what seems to be a unique generated id.
Besides visiting the page, inspecting it, and manually copying that ID, is there a way to automatically get it?
Thanks!
Sure - {{ block.id }} ![]()
If you want to use it to style specific block for example, you should include it between your block for loop. Example:
{%- for block in section.blocks -%}
{%- endfor -%}
Thank you ![]()