# elementor/4.0.0-dev4/modules/page-templates/templates/header-footer.php

Elementor Website Builder – more than just a page builder, version 4.0.0-dev4. 31 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.0.0-dev4/code/modules/page-templates/templates/header-footer.php
- Raw: https://pluginprobe.com/plugins/elementor/4.0.0-dev4/raw/modules/page-templates/templates/header-footer.php
- Modified: 2023-04-23T11:22:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.0.0-dev4/code/modules/page-templates/templates/header-footer.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

\Elementor\Plugin::$instance->frontend->add_body_class( 'elementor-template-full-width' );

get_header();
/**
 * Before Header-Footer page template content.
 *
 * Fires before the content of Elementor Header-Footer page template.
 *
 * @since 2.0.0
 */
do_action( 'elementor/page_templates/header-footer/before_content' );

\Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' )->print_content();

/**
 * After Header-Footer page template content.
 *
 * Fires after the content of Elementor Header-Footer page template.
 *
 * @since 2.0.0
 */
do_action( 'elementor/page_templates/header-footer/after_content' );

get_footer();

```
