WordPress action hook
elementor/page_templates/header-footer/before_content
Defined by Elementor Agent Ready Website Builder and fired by 26 plugins in total, running on 10.6M+ sites between them.
“Before Header-Footer page template content.”
How to use elementor/page_templates/header-footer/before_content
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'elementor/page_templates/header-footer/before_content', function() {
// Your code runs here.
}, 10, 1 );Argument names come from Elementor Agent Ready Website Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
26 plugins that fire elementor/page_templates/header-footer/before_content
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Elementor Agent Ready Website Builder10+ million installs
do_action( 'elementor/page_templates/header-footer/before_content' )modules/page-templates/templates/header-footer.php:17 -
HappyAddons for Elementor400,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/builder/fallback/elementor_header_footer.php:17 -
Dynific Addons for Elementor (formerly Anywhere Elementor)70,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )includes/themes/header-footer-404.php:15 -
HT Mega Addons for Elementor60,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )extensions/ht-builder/templates/archive-fullwidth.php:21 -
Tutor LMS Elementor Addons20,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/single-course-bundle.php:29 -
ShopBuilder10,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )app/Controllers/BuilderController.php:358 -
Classified Listing Toolkits4,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/elementor/listing-fullwidth.php:28 -
Responsive Addons for Elementor3,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )includes/modules-manager/theme-builder/templates/woocommerce/archive-product-fullwidth.php:34 -
Kadence for WooCommerce and Elementor3,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/product-elementor-fullwidth.php:34 -
CubeWP Framework3,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )cube/templates/cubewp-template-single.php:23 -
HT Builder1,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/archive-fullwidth.php:21 -
BuddyPress Builder for Elementor1,000+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/buddypress/buddypress.php:33 -
ST Elementor Addons500+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )theme-builder/includes/modules-manager/theme-builder/templates/woocommerce/archive-product-fullwidth.php:34 -
StoreBuild400+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )public/templates/archive-product-fullwidth.php:35 -
Essential Classy Addons for Elementor400+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )classes/builders/singular-fullwidth.php:15 -
Academy Elementor Addons300+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/single-course-fullwidth.php:11 -
Vertex Addons for Elementor200+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )html/admin/menus/builder/editor/header-footer/tpl.php:14 -
Shopready100+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )src/extension/templates/views/account/account.php:25 -
PrimeKit Addons and Templates60+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )Admin/Inc/ThemeBuilder/Inc/Templates/primekit-404.php:19 -
Zyre Elementor Addons20+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )modules/theme-builder/templates/singular/fullwidth.php:21 -
Architect20+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )inc/classes/templates/archt-elementor-loader.php:63 -
Elite Kit Elementor Addons10+ installs
do_action( 'elementor/page_templates/header-footer/before_content' )templates/builder/fallback/elementor_header_footer.php:17 -
Prime BuilderFewer than 10 installs
do_action( 'elementor/page_templates/header-footer/before_content' )Admin/Inc/ThemeBuilder/Inc/Templates/primebuilder-404.php:21 -
UnikForce Elementor WooCommerce BuilderFewer than 10 installs
do_action( 'elementor/page_templates/header-footer/before_content' )woo-templates/archive-product-fullwidth.php:34 -
V-Tech Studio Widgets for ElementorFewer than 10 installs
do_action( 'elementor/page_templates/header-footer/before_content' )includes/templates/full-width-canvas.php:36 -
SuperDocsFewer than 10 installs
do_action( 'elementor/page_templates/header-footer/before_content' )resources/views/frontend/elementor-header-footer.php:9
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.