Created
June 7, 2023 08:05
-
-
Save blogjunkie/c24142183ef5c23964fb183f9e35ea85 to your computer and use it in GitHub Desktop.
Disable page title in Hello theme if Elementor is active
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Don't copy this line | |
function ele_disable_page_title( $return ) { | |
$post_id = get_the_ID(); | |
$elementor = Elementor\Plugin::$instance->documents->get( $post_id )->is_built_with_elementor(); | |
if ( $elementor == 1 ) { | |
return false; | |
} | |
else { | |
return $return; | |
} | |
} | |
add_filter( 'hello_elementor_page_title', 'ele_disable_page_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment