Last active
November 18, 2024 13:54
-
-
Save rodrigo-gpereira/f643068961d861922f2b7dbbf28b49af to your computer and use it in GitHub Desktop.
This functions hide Elementor Header and Footer on special templates types like as Container and Section for improvement your workflow when you edit templates
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you add a template to Elementor page, you can select editor mode for template
But when you access editor for container or section block models of header and footer are loaded on editor
This code is designed to work with Elementor Pro, a popular WordPress page builder plugin. It aims to conditionally remove the header and footer from specific Elementor templates.
Uses reflectionClass to access the private locations queue property of the $location_manager object and remove the header and footer items