• Resolved Shabir Ahmed

    (@magicboy5465)


    I have been facing an issue with my website. All my pages are showing duplicate meta descriptions. I know the cause of the problem but I dont know how to fix it. Problem is that my site identity section of elementor shows the meta description and I don’t know how to solve it. Please help.

    https://prnt.sc/AufFDejj733V

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi,

    Can you disable all your experiments, please?

    except for the Flex Box experiment (If you have it on your site)

    https://elementor.com/help/elementor-experiments

    If it solves the issue, reactivate the ones you use.

    • Please make sure that all of your Plug-ins and Theme are updated.
    • Sometimes it isn’t obvious that there is a plugin update available. Go to WordPress Dashboard > Updates and click the Check Again button to be sure.
    • Please also regenerate the CSS via Elementor > Tools > Regenerate CSS on your WordPress Dashboard,
    • then make sure that you are clear:
    • your WordPress cache (your WordPress plugin if you have one), your server cache (if
    • you have one. In this case, you can contact your hosting provider).
    • ?Please deactivate all your plugins besides Elementor and see if it helps. If it solves the issue, reactivate them one by one to find the culprit. If it didn’t help, switch your theme (temporarily) and see if it makes any difference.

    Thanks,

    Same problem and I can’t deactivate Flex Box experiment

    Do you plan an update?

    • This reply was modified 1 year, 8 months ago by Iron Star.

    I got the same issue with WordPress + Elementor.

    Every page that has a excerpt is using this as <meta name=”description”

    Please fix this.

    I’ve got the same problem with Hello Elementor. It looks like the problem is here in the function.php of Hello Elementor theme:

    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' );

    When using Yoast SEO it creates multiple meta descriptions on every page that has excerpt.

    You should be able to remove that action with this action hook:

    https://developers.elementor.com/docs/hello-elementor-theme/hello_elementor_add_description_meta_tag/#usage

    function remove_hello_elementor_description_meta_tag() {
        remove_action( 'wp_head', 'hello_elementor_add_description_meta_tag' );
    }
    add_action( 'after_setup_theme', 'remove_hello_elementor_description_meta_tag' );
    

    Using RankMath as the SEO plugin for several sites and we’re now running into this. Does anyone know if this is something Elementor is addressing? Themes shouldn’t mess with SEO like this – or – there should be a quick way to disable this in Elementor settings.

    Which php file do I edit and does it matter where the code given for the hook resolution goes in that php file? Thanks

    https://developers.elementor.com/docs/hello-elementor-theme/hello_elementor_add_description_meta_tag/#usage

    @pedroso888 you should add the code to the functions.php (I would advise to use a child theme to prevent overwriting when you update your theme next time).

    But I agree, there should be a quick way to disable, especially when you use a SEO plugin like Rankmath, Yoast SEO or SmarCrawl.

    Hey Elementor Team @ozyeger,

    This seems like a bug that you will be working on, but I still see this issue. Whenever I have a post with an excerpt it has the first meta tag is the meta description from yoast and the second is a meta description that should be an excerpt tag. This issue leads to SEO issues and should be fixed. I am not adding the URL to the site since I have removed the excerpt to avoid this issue for now.

    Screenshot of correct meta description from Yoast

    Screenshot of incorrect meta description from the excerpt field.

    • This reply was modified 1 year, 3 months ago by Matt Enser.

    any update on the problem of duplicate meta descriptions?

    activeservicesdigital

    (@activeservicesdigital)

    Hello everyone,

    This has now been fixed, Elementor has added a toggle in the Theme Settings to disable this extra meta description – it fixed the issue on all the pages in seconds

    Go to Appearance > Theme Settings and you should see the toggle that says ‘Disable description meta tag’

    I fixed this on [my site] by going to /wp-admin/themes.php?page=hello-theme-settings and disabling “‘Disable description meta tag”

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Duplicate meta description because of elementor’ is closed to new replies.