Forums

[resolved] How do I remove a post from Google's cache? (11 posts)

  1. egm27
    Member
    Posted 3 years ago #

    Hello all.

    First, I do know about http://www.google.com/webmasters/remove.html .

    To take my pages out of the Google cache, I need to enter a META tag at the top of my posting. The problem is that I don't know how to find the individual posting.

    Is there a single .php file that keeps all of my blog postings with Wordpress? I've been looking for hours for a file that has information for all my posts, but I can't find it.

  2. ladydelaluna
    Member
    Posted 3 years ago #

    you just need to put in the "noarchive" tag into your site header... that will cover anything and everything on the site.

    kind of says it all right there on that page you linked us to:

    To prevent all search engines from showing a "Cached" link for your site, place this tag in the <HEAD> section of your page::

    <META NAME="ROBOTS" CONTENT="NOARCHIVE">

    To allow other search engines to show a "Cached" link, preventing only Google from displaying one, use the following tag:

    <META NAME="GOOGLEBOT" CONTENT="NOARCHIVE">

    Note: this tag only removes the "Cached" link for the page. Google will continue to index the page and display a snippet.

  3. egm27
    Member
    Posted 3 years ago #

    Thanks for the quick post.

    I understand all of that... but my problem is that I can't find the page (i.e., the filename) where I need to put that header.

    index.php? Looking at that file in FTP, it reports a size of 0 kb.

    One of the wp-xxxx.php files?

    I hope I'm clear now... I don't know in which file I'm supposed to put those headers.

    Thanks.

  4. egm27
    Member
    Posted 3 years ago #

    Just for an example...

    One URL on my site is http://www.xxx.com/?p=18 . Where can I find the information contained on the ?p=18 page?

    Thanks again.

  5. ladydelaluna
    Member
    Posted 3 years ago #

    you have to edit the header.php file.
    not index.php and not per post... just the header.php file - it'd be under Presentation - Theme Editor inside the admin of your wordpress.

    the code you got from google has to go somewhere between <head> and </head> - preferably up near <title> but on it's own line.

  6. egm27
    Member
    Posted 3 years ago #

    ladydelaluna,

    Thanks, you have helped me immensely! Really appreciate it!

  7. ladydelaluna
    Member
    Posted 3 years ago #

    :) you're very welcome :)

  8. egm27
    Member
    Posted 3 years ago #

    Okay, not to bring this back from the dead, but...

    I found where you are talking about. I see exactly where I need to insert those lines. However, it appears as if I can't edit the file. At the bottom of the window where I see the header.php file, I see this:

    "If this file were writable you could edit it."

    I don't see a save button or the like.

    Any ideas on how to save the changes?

    Thanks again.

  9. ladydelaluna
    Member
    Posted 3 years ago #

    egm - you might want to just FTP the file down and make the change, and then FTP it back up...

    you've got your CHMOD permissions set up so that you can't edit in there... check that first, actually, because it might be harming your abilities to post and such later on.

  10. egm27
    Member
    Posted 3 years ago #

    You were right. Silly me... Just changed the permissions and it let me edit & save immediately.

    Again, thanks a lot. This is now resolved officially, again. :)

  11. ladydelaluna
    Member
    Posted 3 years ago #

    :) no sweat

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags