Some theme sections can have more blocks than you need, and you may want to remove some of them. For instance, the All Series section in the Lyra theme has nine blocks.

For this example, we will assume that we only need six, so we are going to remove the last three ones using the Code Editor.

Before you change code, always make a backup of your site.

First, we need to identify which file is associated with each section, e.g. _trending_categories.liquid represents All Series in the Lyra theme.

The second step is to comment on the HTML code from the last three blocks โ€“ commenting is safer than removing, if your catalog grows in the future, you can go back and remove the comment tags. We can open the comment with <!-- and close it with --> as shown below:

After we save the changes, we will only see six blocks now:

Did this answer your question?