More in this section
Forums / General Discussions / Exclude image titles/alt tags in "static HTML in pages" search indexes?

Exclude image titles/alt tags in "static HTML in pages" search indexes?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Anita
    Anita avatar
    9 posts
    11 May 2015
    15 Jun 2015
    Link to this post

    We have a search index that searches through "Static HTML in pages" but it's catching images as results. (The search result shows up as a link to the image.) We surmise it's because it's capturing the title and/or alt tags in those images, which appear in the HTML, of course.

     Is there a way to exclude the HTML in image tags?

  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    04 Jan 2016
    18 Jun 2015
    Link to this post

    You can use the approach described in this article: Hiding Page Content From The Search Engine In Sitefinity Using Layout Widgets. You can place the image widgets in this non searchable layout and the html will not be rendered when the page is processed in memory for indexing, essentially leaving out anything that you placed in this layout.

    Atanas Valchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered