How to remove blocks section from shopify schema?


by denis , in category: PHP CMS , 4 months ago

How to remove blocks section from shopify schema?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by herminia_bruen , 4 months ago


To remove the blocks section from the Shopify schema, you will need to modify the code in your theme files. Here's how you can do it:

  1. Go to your Shopify admin dashboard and click on Online Store > Themes.
  2. Click on the "Actions" dropdown menu and select "Edit code" for the theme you want to modify.
  3. In the left sidebar, navigate to the Sections folder and look for the schema section that contains the blocks section you want to remove. This is typically located in a file named "schema.json" or something similar.
  4. Open the file and look for the specific code related to the blocks section. This code will likely be wrapped in a section or block that you can remove entirely.
  5. Once you've found the code related to the blocks section, delete it entirely or comment it out by adding a "//" in front of each line of code.
  6. Save your changes and preview your theme to ensure that the blocks section has been removed successfully.

Keep in mind that modifying theme files directly can be risky, so it's always a good idea to make a backup of your theme before making changes. If you are unsure about how to proceed, consider reaching out to a Shopify expert or developer for assistance.