I have created a child theme with this code in the functions.php file:
/**
* Check hide title.
* Overrides the same function in ..\hello-elementor\functions.php
*
* @param bool $val default value.
*
* @return bool
*/
function hello_elementor_check_hide_title( $val ) {
if ( get_theme_mod( 'hello_elementor_hide_title_globally', 'false' ) ) {
$val = false;
} else if ( defined( 'ELEMENTOR_VERSION' ) ) {
$current_doc = \Elementor\Plugin::instance()->documents->get( get_the_ID() );
if ( $current_doc && 'yes' === $current_doc->get_settings( 'hide_title' ) ) {
$val = false;
}
}
return $val;
}
add_filter( 'hello_elementor_page_title', 'hello_elementor_check_hide_title' );
if ( ! function_exists( 'hello_elementor_theme_options' ) ) {
/**
* Add options to the theme customization panel
*
* @param $wp_customize WP_Customize_Manager instance.
*
* @return void
*/
function hello_elementor_theme_options( $wp_customize ) {
$wp_customize->add_setting( 'hello_elementor_hide_title_globally', array (
'default' => false,
) );
$wp_customize->add_section( 'hello_elementor_display_options', array (
'title' => __( 'Display options', 'hello-elementor' ),
) );
$wp_customize->add_control( 'hello_elementor_hide_title_globally', array (
'type' => 'checkbox',
'section' => 'hello_elementor_display_options',
'label' => __( 'Hide page title on all pages', 'hello-elementor' ),
'description' => __( 'Checking this hides the page title on all pages. It will override any page-specific settings.', 'hello-elementor' ),
) );
}
}
add_action( 'customize_register', 'hello_elementor_theme_options' );
This will allow you to go to Appearance -> Customnize -> Display options and tick the checkbox “Hide page title on all pages”. I have proposed adding this to the theme itself but the developers refused.