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:

functions.php
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.

  1. Elementor Agent Ready Website Builder icon Elementor Agent Ready Website Builder10+ million installs do_action( 'elementor/page_templates/header-footer/before_content' ) modules/page-templates/templates/header-footer.php:17
  2. HappyAddons for Elementor icon HappyAddons for Elementor400,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/builder/fallback/elementor_header_footer.php:17
  3. Dynific Addons for Elementor (formerly Anywhere Elementor) icon 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
  4. HT Mega Addons for Elementor icon HT Mega Addons for Elementor60,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) extensions/ht-builder/templates/archive-fullwidth.php:21
  5. Tutor LMS Elementor Addons icon Tutor LMS Elementor Addons20,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/single-course-bundle.php:29
  6. ShopBuilder icon ShopBuilder10,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) app/Controllers/BuilderController.php:358
  7. Classified Listing Toolkits icon Classified Listing Toolkits4,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/elementor/listing-fullwidth.php:28
  8. Responsive Addons for Elementor icon 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
  9. Kadence for WooCommerce and Elementor icon Kadence for WooCommerce and Elementor3,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/product-elementor-fullwidth.php:34
  10. CubeWP Framework icon CubeWP Framework3,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) cube/templates/cubewp-template-single.php:23
  11. HT Builder icon HT Builder1,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/archive-fullwidth.php:21
  12. BuddyPress Builder for Elementor icon BuddyPress Builder for Elementor1,000+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/buddypress/buddypress.php:33
  13. ST Elementor Addons icon 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
  14. StoreBuild icon StoreBuild400+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) public/templates/archive-product-fullwidth.php:35
  15. Essential Classy Addons for Elementor icon Essential Classy Addons for Elementor400+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) classes/builders/singular-fullwidth.php:15
  16. Academy Elementor Addons icon Academy Elementor Addons300+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/single-course-fullwidth.php:11
  17. Vertex Addons for Elementor icon Vertex Addons for Elementor200+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) html/admin/menus/builder/editor/header-footer/tpl.php:14
  18. Shopready icon Shopready100+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) src/extension/templates/views/account/account.php:25
  19. PrimeKit Addons and Templates icon PrimeKit Addons and Templates60+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) Admin/Inc/ThemeBuilder/Inc/Templates/primekit-404.php:19
  20. Zyre Elementor Addons icon Zyre Elementor Addons20+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) modules/theme-builder/templates/singular/fullwidth.php:21
  21. Architect icon Architect20+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) inc/classes/templates/archt-elementor-loader.php:63
  22. Elite Kit Elementor Addons icon Elite Kit Elementor Addons10+ installs do_action( 'elementor/page_templates/header-footer/before_content' ) templates/builder/fallback/elementor_header_footer.php:17
  23. Prime Builder icon Prime BuilderFewer than 10 installs do_action( 'elementor/page_templates/header-footer/before_content' ) Admin/Inc/ThemeBuilder/Inc/Templates/primebuilder-404.php:21
  24. UnikForce Elementor WooCommerce Builder icon UnikForce Elementor WooCommerce BuilderFewer than 10 installs do_action( 'elementor/page_templates/header-footer/before_content' ) woo-templates/archive-product-fullwidth.php:34
  25. V-Tech Studio Widgets for Elementor icon 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
  26. SuperDocs icon 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.