0

I have two site collections inside my SharePoint application; team site & community site. I have added the following customeFooter Div to the seatle.master to display our company name as a footer as follow:-

<div id="customFooter"  >&copy; Our Company 2013</div>
    </div>
    </SharePoint:SharePointForm>
    <SharePoint:AjaxDelta id="DeltaPlaceHolderUtilityContent" runat="server">
    <asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server"/>
    </SharePoint:AjaxDelta>
    <SharePoint:ScriptBlock runat="server">
    var g_Workspace = "s4-workspace";
    </SharePoint:ScriptBlock>
    </body>. 

But I have noted that in case a user search for our company name “Our Company”, then all the pages will be displayed in the search because they have the company name as the footer . can anyone advice how I can solve this issue, and how to exclude the footer from being crawl ?

4

Add class="noindex" to your footer <div>

See Control Search Indexing (Crawling) Within a Page with Noindex

  • 1
    Is this really working? I know there where huge problems with using this class in 2010, and I have spotted the same behavior in 2013. Maybe we have been using it wrong. See for example this question: sharepoint.stackexchange.com/questions/53280/… – Robert Lindgren Sep 23 '13 at 9:50
  • 1
    As long as it's a simple div as the one here it should work. As far as I know the problem is "only" that SharePoint search doesn't support nested divs – Per Jakobsen Sep 23 '13 at 9:56
  • i added this but it did not exclude the footer from the search. maybe because the footer was already crawled before adding the noindex class ?!! – john Gu Sep 23 '13 at 9:59
  • A full crawl will be needed. As SharePoint will not think the pages have been changed, when it's the Master page that has the change – Per Jakobsen Sep 23 '13 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.