golden hour
/home/godaofbq/hyperxmed.com/wp-content/plugins/elementor-pro/modules/theme-builder/theme-support
⬆️ Go Up
Upload
File/Folder
Size
Actions
generate-press-theme-support.php
1.82 KB
Del
OK
safe-mode-theme-support.php
900 B
Del
OK
Edit: safe-mode-theme-support.php
<?php namespace ElementorPro\Modules\ThemeBuilder\ThemeSupport; use ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Safe_Mode_Theme_Support { /** * @param Locations_Manager $manager */ public function register_locations( $manager ) { $manager->register_core_location( 'header' ); $manager->register_core_location( 'footer' ); } public function do_header() { elementor_theme_do_location( 'header' ); } public function do_footer() { elementor_theme_do_location( 'footer' ); } public function __construct() { add_action( 'elementor/theme/register_locations', [ $this, 'register_locations' ] ); add_action( 'elementor/page_templates/canvas/before_content', [ $this, 'do_header' ], 0 ); add_action( 'elementor/page_templates/canvas/after_content', [ $this, 'do_footer' ], 0 ); } }
Save