Tips, Web Design, Web Development, WordPress

How to Hide Your WordPress Theme Information

A reader recently commented on our How to Name Your WordPress Theme post asking how to hide the theme information from being seen when someone looks at your site info.

It is actually a pretty simple fix that can be done in less than two minutes.

All you need to do is open up your theme’s function.php file.

Add the line of code below and your theme information will no longer show when someone views your site information in their browser.

remove_action(‘wp_head’, ‘wp_generator’);

If you need help feel free to leave a comment below.

Related posts

  • What about removing the Theme Name from the .css file??

  • Jane Barnes

    Hello,

    Maybe I got it wrong.. but I added the code as recommended… yet when I right click and select view page source info., I can still see my theme name? Did I miss something please? Cheers. Jane

    (below is a copy of code as added)

  • Jane Barnes

    URL is http://www.ourlocalbusinessdirectory.com.au

    This is now a testing site for other local ones that are on a multisite network. Thanks.

  • Jane Barnes

    I think it does not show on the comment form again…I am adding it between these 2 lines of text!

  • Joeydav

    Nah, didn’t do a think for me.