# Register Elementor Pro Theme Locations

> Registers Elementor Pro's header, footer, single and archive locations for themes that do not do it themselves, so Theme Builder templates can replace those areas.

- Type: PHP
- Runs: Run everywhere
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: elementor, theme-builder, themes
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/elementor-register-theme-locations/

## Code

```php
add_action( 'elementor/theme/register_locations', function ( $theme_manager ) {
    if ( method_exists( $theme_manager, 'register_all_core_location' ) ) {
        $theme_manager->register_all_core_location();
    }
} );
```

## Notes

Needs Elementor Pro. Hello Elementor, Astra, GeneratePress and most popular themes already register these.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Register Elementor Pro Theme Locations" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
