-
Notifications
You must be signed in to change notification settings - Fork 59
Adding Header Footer Elementor support for your theme
Nikhil edited this page Sep 11, 2017
·
9 revisions
If you are a theme developer you can add support for Header Footer Elementor very easily!
The main idea here is to disable the header and footer added by your theme allow hooks for the plugin to render the header/footer.
There can be multiple to disable default header/footer from the theme. If your theme supports actions and filters for rendering the markup of header/footer the cleanest approach would be to remove original actions.
For eg -
For Astra Theme Header can be disabled by removing the actions
remove_action( 'astra_header', 'astra_header_markup' );
For rendering the header from plugin, just call the HFE's function to render the header in its place
add_action( 'astra_header', 'hfe_render_header' );