SEO Marketing

Duplicate Meta Descriptions with Elementor and Plugin

Recently Elementor updated their ‘Hello” wordpress theme to version 2.8.1. If you are using an SEO plugin like Yoast or Rankmath some of you may have noticed that you have duplicated Meta Descriptions or two Meta Descriptions that may be different.

At the end of the day you use your plugin to control your Meta Description and not have the theme do this for you. I have seen it pull in over 900 words which is crazy!

Don’t forget the Meta Description is not a ranking factor and whatever you do put in your description, on many occasions, you may see Google serve up something different to suit the search intent.

How to remove one (not the plugin) of the two meta descriptions from the Hello elementor theme?

To remove the meta description from your Hello Theme is very simple. Go to your file manager, WP-Content folder > Themese Folder > Hello-elementor folder > Open your Functions.php file.

In your funtions.php file you need to find the following code. You can either search for it or you will probably find it around line 213.

					if ( ! function_exists( 'hello_elementor_add_description_meta_tag' ) ) {
	 * Add description meta tag with excerpt text.
	 * @return void
	function hello_elementor_add_description_meta_tag() {
		$post = get_queried_object();

		if ( is_singular() && ! empty( $post->post_excerpt ) ) {
			echo '<meta name="description" content="' . esc_attr( wp_strip_all_tags( $post->post_excerpt ) ) . '">' . "\n";
add_action( 'wp_head', 'hello_elementor_add_description_meta_tag' );

NOTE: Before you go to the next step, make sure you have a saved copy of your functions.php file just in case. If you are not confident in making this change then speak to a developer who can do this for you.

Simply remove the lines of code stated above then save your functions.php file and you are good to go.

Go back to your website refresh the page, possibly clear your cache and you can check if the offending meta description has gone.

Updated on 19 October 2023