Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about storefront

Read more about storefront

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - storefront

(Shopify) Error: Missing {{content_for_layout}} in the body section of the template

I removed "main" section with "{{content_for_layout}}" in theme.liquid: <main role="main"> {{ content_for_layout }} </main> Then, I got this error as shown...
test-img

Kai - Kazuya Ito

shopify

e-commerce

shopify-template

storefront

shopify-liquid

Votes: 0

Answers: 1

Latest Answer

You can comment it out as shown below: {% comment %} <main role="main"> {{ content_for_layout }} </main> {% endcomment %} In addition, you can use style="display: none&...
test-img

Kai - Kazuya Ito

I got &quot;EmptyDrop&quot; to get the specific object of a collection (Shopify)

I have the collection "Healthy Products": Then, with Liquid, I'm trying to get the object of the collection "Healthy Products" with this code below: {{ collections["Healthy P...
test-img

Kai - Kazuya Ito

frontend

shopify

e-commerce

storefront

shopify-liquid

Votes: 0

Answers: 1

Latest Answer

You need to put "-"(Hyphen) between "Healthy" and "Products" as shown below: {{ collections["Healthy-Products"] }} Then, you can get "CollectionDrop"...
test-img

Kai - Kazuya Ito

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved