- 6
I'm using Pavilion theme.
I want to add font-awesome.min.css to Nop.Plugin.Payments.CheckMoneyOrder. So I did:
In Nop.Plugin.Payments.CheckMoneyOrder plugin project, under Views\PaymentInfo.cshtml, I added the file like below.
After that I built and gave a it a run. The css file is not loaded even though the code is executed when I debugged. What am I missing?
PaymentInfo.cshtml:
@{
Layout = "";
Html.AddCssFileParts("~/Plugins/Payments.CheckMoneyOrder/Content/font-awesome.min.css");
}
@using Nop.Web.Framework.UI
@model Nop.Plugin.Payments.CheckMoneyOrder.Models.PaymentInfoModel
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
@Html.Raw(Model.DescriptionText)
</td>
</tr>
</table>
Also I already checked that the css file was always copied to deployment dir.
I want to add font-awesome.min.css to Nop.Plugin.Payments.CheckMoneyOrder. So I did:
In Nop.Plugin.Payments.CheckMoneyOrder plugin project, under Views\PaymentInfo.cshtml, I added the file like below.
After that I built and gave a it a run. The css file is not loaded even though the code is executed when I debugged. What am I missing?
PaymentInfo.cshtml:
@{
Layout = "";
Html.AddCssFileParts("~/Plugins/Payments.CheckMoneyOrder/Content/font-awesome.min.css");
}
@using Nop.Web.Framework.UI
@model Nop.Plugin.Payments.CheckMoneyOrder.Models.PaymentInfoModel
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
@Html.Raw(Model.DescriptionText)
</td>
</tr>
</table>
Also I already checked that the css file was always copied to deployment dir.