• How To?
  • Tips ‘n Tricks
  • WordPress
  • Snippets
  • Software
    • Browsers
    • Downloads
  • Web
  • Tools
    • Character Counter
    • chmod Calculator
    • Entities Encoder
    • Live HTML Editor
    • My IP
  • Contact
Twitter Facebook Google+ RSS
You are here: SumTips » Tips 'n Tricks » Remove WordPress Meta Generator tag

Remove WordPress Meta Generator tag

Posted on December 9, 2010 by Renji | Short URL: http://sumtips.com/?p=2211

If you are running a WordPress site, then anyone can know which version you are on by simply viewing the source code. So, someone with the intent of hacking your site can use vulnerabilities for that particular version and get success.

Here’s how you can remove this tag:

  1. Login into your WordPress Admin Panel.
  2. Go to Appearance -> Editor and click on  Theme Functions (functions.php) from the list of theme files.
  3. Just before the closing “?>” tag, add the following:
  4. remove_action(’wp_head’, ‘wp_generator’);
  5. Click the Update file button to save changes.

That’s it! Now go view the source of your site, the <meta name=”generator” content=”WordPress” /> should be removed.


Tweet

Related posts:

  • WordPress Theme Finder
  • Check WordPress Stats from Google Chrome
  • WordPress App for Nokia
  • Embed Facebook Albums, Events, Notes, And Other Objects on Your WordPress Site
  • WordPress.com Rolls Out Gravatar Hovercards
Categories: Tips 'n Tricks | Tags: Tips 'n Tricks, WordPress
Know If Your Yahoo Messenger Buddy is Really Offline or Invisible?
Create Custom Search Engine of Any Website in Google Chrome

  • Get Updates via Email

  • Recent Posts

    • CMS2CMS: Migrate Site from Drupal or Joomla to WordPress
    • WordPress: Add Preview Button in Distraction Free Writing
    • How to Activate or Deactivate Individual Jetpack Modules
    • Windows 8: Auto Update Defender with Windows Update Disabled
    • Automatically Start and Close Programs at Specific Time
    • How to Copy Code from Notepad++ with Syntax Highlighting
  • Random Posts

    • Create File or Folder Shortcuts from Command Line in Windows
    • Pin Files, Folders, Run Commands & more on Windows 7 & 8 Taskbar
    • Windows 8: Add “Pin to Start” Context Menu Item for All Files
    • Tap your Android Phone to Check-in, Make Payments
    • New Foursquare Badge: Baggage Handler
    • Font Dragr – Drag and Drop Fonts on a Website to Test
  • Categories

    • Blogging
    • Games
    • Google
    • How To?
    • Linux
    • Microsoft
      • Windows
    • Miscellaneous
    • Phone
    • Snippets
      • AutoHotkey Snippets
      • CSS Snippets
      • htaccess Snippets
      • JavaScript Snippets
      • PowerShell Snippets
      • WordPress Snippets
    • Social
    • Software
      • Browsers
    • Tips 'n Tricks
    • Wallpapers
    • Web
© SumTips. Contact | Sitemap | Privacy Policy