mirror of
https://github.com/elementor/hello-theme.git
synced 2025-10-03 15:33:37 +08:00
Tweak: Conditional display for site-wide header & footer panels inside the “Site Settings“ (#358)
This commit is contained in:
parent
cc82bda6c5
commit
a11cf70116
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@ function hello_elementor_settings_init() {
|
|||
require 'settings/settings-footer.php';
|
||||
|
||||
add_action( 'elementor/kit/register_tabs', function( \Elementor\Core\Kits\Documents\Kit $kit ) {
|
||||
if ( ! hello_elementor_display_header_footer() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$kit->register_tab( 'hello-settings-header', HelloElementor\Includes\Settings\Settings_Header::class );
|
||||
$kit->register_tab( 'hello-settings-footer', HelloElementor\Includes\Settings\Settings_Footer::class );
|
||||
}, 1, 40 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue