WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] problem with meta tags and not still solved......... (8 posts)

  1. andaniel
    Member
    Posted 1 year ago #

    Hello! Please help me........im getting this error by analyzing my website optimization
    Your web page uses the MEta Generator twice. Search engines could regard it as a spamming attempt and might decide not index to your website. You should remove the second MEta Generator tag, even if it's embedded in an <iframe> tag.

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    Please provide a link to your site.

    when you view the source of a page in the browser, do you see a line in the head section that starts <meta generator… ? You should only have one line like that, the message indicate that your site has more than one. Is there one within an iframe?

    For this kind of issue, to troubleshoot you need to first find the cause by checking whether deactivating your plugins and switching to the default theme fixes it.

    Please do not post your question multiple times on these forums in future.

  3. andaniel
    Member
    Posted 1 year ago #

    Hello!
    sorry for posting more than one time i will not post next time excuse for this

    Thanks for reply..
    i could find <meta name="generator" content="WordPress 3.5.1" /> only once..
    no iframe tag i found in source codes..
    i have deactivate all in one seo and tried switching theme but same problem
    site is
    http://www.kahees.com

  4. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    You have a meta generator line for WordPress and one for WooCommerce.

    you should be able to remove the WooCommerce one by adding the following to your theme' functions.php

    function remove_woo_commerce_generator_tag()
    {
        remove_action('wp_head',array($GLOBALS['woocommerce'], 'generator'));
    }
    add_action('get_header','remove_woo_commerce_generator_tag');
  5. andaniel
    Member
    Posted 1 year ago #

    i have added it in function but getting same error...

    Please check the source code meta tag with woocomerece is not in codes now..
    but still unsolved..

  6. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    I still see meta generator tags for both WordPress & WooCommerce when viewing source on your homepage.

    Instead of the code I posted above, try the following in your functions.php:

    function my_woocommerce_loaded_function() {
         global $woocommerce;
    
         // remove WC generator tag from <head>
         remove_action( 'wp_head', array( $woocommerce, 'generator' ) );
    }
    
    // called only after woocommerce has finished loading
    add_action( 'woocommerce_init', 'my_woocommerce_loaded_function' );

    I have not tried this for myself yet, but it comes from one of the WooCommerce devs: https://gist.github.com/mikejolley/3709371

  7. andaniel
    Member
    Posted 1 year ago #

    Great work!!!

    Problem solved...

    Bundle of thanks.........

    Hats off!!!!!!!

    daniel....

  8. andaniel
    Member
    Posted 1 year ago #

    i am AFTER THAT i am with problem activating woocommerece plugin.

    include(/hermes/bosoraweb064/b1395/ipg.kaheescom/wp-content/plugins/woocommerce/templates/loop/out-of-stock-flash.php) [function.include]: failed to open stream: No such file or directory in /hermes/bosoraweb064/b1395/ipg.kaheescom/wp-content/plugins/woocommerce/woocommerce-core-functions.php on line 390

Topic Closed

This topic has been closed to new replies.

About this Topic