Answered by:
unable to reference css and js files in search display templates

Question
-
Hi
I am adding custom actions to search results hover display template and i found Item_CommonHoverPanel_Actions.html to modify and i am referencing my own css file here but default styles are applying but not my added css file and kindly let me know any solutions or procedures regarding referencing css and js files and for that what kind of modifications i have to do.
Thanks
Razvi444
Saturday, November 16, 2013 5:02 AM
Answers
-
- Marked as answer by Razvi444 Saturday, November 23, 2013 4:58 AM
Saturday, November 23, 2013 4:58 AM
All replies
-
Please refer to this
Regards,
Sharath
sharath kumart shivarama
Sunday, November 17, 2013 7:04 PM -
check this one,
<
script
>
$includeScript(this.url, <
a
href
=
"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
>http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js</
a
>);
$includeCSS(this.url, "style library/Slider/css/MySearchWebPartStyle.css");
</
script
>
http://cann0nf0dder.wordpress.com/2013/02/20/content-search-webpart-and-display-templates/
also nice blog:http://blogs.technet.com/b/speschka/archive/2012/07/23/using-query-rules-result-types-and-display-templates-for-a-custom-search-sales-report-in-sharepoint-2013.aspx
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog
- Proposed as answer by Robin DiCicco Tuesday, July 29, 2014 8:57 PM
Monday, November 18, 2013 12:56 AM -
- Marked as answer by Razvi444 Saturday, November 23, 2013 4:58 AM
Saturday, November 23, 2013 4:58 AM