How to tell google not to index header and footer of a website?

Member

by dudley , in category: SEO , 4 months ago

How to tell google not to index header and footer of a website?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by elliott , 4 months ago

@dudley 

To tell Google not to index the header and footer of a website, you can use the "noindex" meta tag in the HTML code of those parts. Here's how you can do it:

  1. Open the HTML file for the header of your website.
  2. Add the following meta tag within the section of the HTML file:
  3. Save the file and repeat the same steps for the footer HTML file.


By adding this meta tag, you are instructing Google's crawlers not to index the content within the header and footer sections of your website. However, keep in mind that other search engines may interpret this differently, so Google might be the only search engine following this instruction.


It's important to note that this solution assumes you have access to the HTML files of your header and footer. If you are using a Content Management System (CMS) like WordPress or Joomla, there may be other methods or plugins available to achieve the same result.