• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Meta Generator in Genesis Header, SEO plugins

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Meta Generator in Genesis Header, SEO plugins

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 12 years, 6 months ago by David Chu.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 28, 2013 at 3:11 pm #59326
    David Chu
    Participant

    Hi,
    As per Gary, I'm just posting an FYI about a little anomaly - I wouldn't even call it a bug per se.

    If you're like me, you like to remove the meta generator code in the header that tells that you're running WordPress and what version it is. It is true that anyone with a little savvy can ascertain that you're running WordPress anyway. But no sense in making WordPress an even bigger hacking target than it already is. And besides, having that in there is just so, well, Joomla-like, and coming from me, that's dirty language. ๐Ÿ™‚

    Genesis removes the generator line by default. So I was surprised to see it in my shiny new Genesis 2 site. If that doesn't matter to you, definitely tune this out! ๐Ÿ™‚ In any case, I figured out why, and here's the sequence.

    seo.php is run, doing some SEO stuff (hard to believe, I know). One of its tasks is to disable Genesis SEO if you have another plugin for it.

    seo.php runs genesis_seo_compatibility_check(),
    which in turn runs genesis_detect_seo_plugins()

    If seo plugin is detected, run genesis_disable_seo()

    genesis_disable_seo() runs
    remove_action( 'get_header', 'genesis_doc_head_control' );

    .... and the only problem with that is that prevents that nice function (with its most excellent name) from doing one of its tasks: getting rid of the "generator".

    Why was my Genesis 2 affected? Because SEO Ultimate, the plugin I use, was just added to the SEO list! Mystery solved. I did another test, and found that the same generator deal occurs in Genesis 1 for these SEO plugins that were already in there: All-In-One, Yoast, Platinum SEO, and Headspace.

    The workaround is easy. Just pop this in your functions.php:

    remove_action( 'wp_head', 'wp_generator' );
    

    Other ideas would be to move that generator removing function elsewhere, but I don't have an obvious suggestion, especially in core code.

    Cheers, Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    September 1, 2013 at 3:08 pm #60100
    Gary Jones
    Member

    Thanks for sharing David,

    It's not really a bug, but I think genesis_doc_head_control() could be split up, or the Document Head Control should be split up so that the bits that are definitely not SEO-related are moved into Theme Settings (and not unhooked if an SEO plugin is present). I'll raise a ticket for it to be considered.


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

    September 2, 2013 at 7:28 am #60241
    David Chu
    Participant

    Gary,
    That sounds great, thanks. I will keep an eye out for any more significant concerns, although, thanks to your participation, any problems have been reduced to near zero!

    I'm already reading and enjoying your Genesis 2 Guide.

    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble