why SmartSearchResults wraps my transformation with a div?

amir kian asked on July 13, 2020 14:13

I use SmartSearchResults webpart but It wraps my transformation result with a div like this: <div id="p_lt_ctl03_pageplaceholder_p_lt_ctl01_SmartSearchResults_srchResults_pnlSearchResults">

I'm wondering how to get rid of this div element that wraps my transofomation result?

Or How I can add class to this div?

Recent Answers

Dmitry Bastron answered on July 13, 2020 17:17

Hi Amir,

Search Results Web Part uses asp.net Panel control to display results (as well as no results message, the panel is the same). Panel translates into div in the markup. The only way to get rid of this div is to develop your own custom search results Web Part.

But if you just need to add a CSS-class for the wrapper somewhere you can use Web Part Containers. It won't be this particular div, but the wrapper on top of it.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.