You’re correct, it’s not ideal indeed, most especially in cases where you’re hiding elements that take a meaningful impact on performance (e.g. Javascript functions that change the website’s layout, injected apps, etc).
For this specific issue, it’s not very relevant since neither the header nor the footer have any pithy impact on the website’s performance.
With that said, you can remove the header/footer’s section in its entirety by simply:
- Navigate to the theme.liquid file
- Find " {% section ‘header’ %}" and " {% section ‘footer’ %}
- Delete them.
This will remove both the header and the footer from the website.
Kind regards,
Diego
