Hi Ondrej,
This is very weird, I have commented out that code only but at that time it worked. And I tried to replicate the exact step to replicate the issue, but that does not happen to my local environment.
There might be some different reasons behind your issue, I would like to suggest troubleshoot the following common issue to help us to recognize the reason.
1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If the issue was caused by our theme, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access in the secure note including:
– WordPress Site URL & Login URL
– WordPress Admin username/password
To create a secure note, click the key icon underneath any of your posts.
Thanks