Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are using ELementor Pro, you can use a header in the theme builder, this should hide the auto title in the published page, whether you chose to or not in the Elementor Page Settings.

    Another way is to edit the theme, I recommend doing this in a Hello Elementor Child theme so it won’t be lost on updates.

    In functions.php and add the line:
    add_filter( 'hello_elementor_page_title', '__return_false' );

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do i get rid of the page title on every page?’ is closed to new replies.