Hide/insert content on landing page

I’d recommend you rather use the custom-homepage modifier to add a dedicated homepage route to your page: Using the new custom-homepage feature.

Then you can build out your homepage in a clean modular approach. You can add components in your theme code. Or you could try a component like Homepage Blocks and add components through its editor.

Here’s two recent examples of sites I built with the custom homepage route and blocks. You could inspect the code to see the resulting structure. The Zolidar homepage also gives an example of how you can make use of container queries and a grid layout on the homepage, so you have better control over your homepage layout.

3 Likes