I have built a custom master page that we're using throughout the site which features a customized SmallSearchBox control which i have implemented using best practice:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Control Id="SmallSearchInputBox" Sequence="10" ControlClass="Microsoft.SharePoint.Portal.WebControls.SearchBoxEx" ControlAssembly="Microsoft.Office.Server.Search, Version=18.104.22.168, Culture=neutral, PublicKeyToken=71e9bce111e9429c"> <Property Name="GoImageUrl">/_layouts/images/gosearch15.png</Property> <Property Name="GoImageUrlRTL">/_layouts/images/gosearchrtl15.png</Property> <Property Name="GoImageActiveUrl">/_layouts/images/gosearchhover15.png</Property> <Property Name="GoImageActiveUrlRTL">/_layouts/images/gosearchrtlhover15.png</Property> <Property Name="DropDownMode">ShowDD</Property> <Property Name="SearchResultPageURL">/Search/pages/results.aspx</Property> <Property Name="ScopeDisplayGroupName"></Property> <Property Name="FrameType">None</Property> </Control> </Elements>
I used the sequence number 10 and it works ok. However, we created search sub-site and and the page results.aspx. The site uses the same master page. However, on that page the search box theme looks different which throws all of my customizations off. Has anyone dealt with this issue? I would like to avoid building a custom master page and specific inherited control SmallSearchBoxEx. I feel like i am missing something obvious.