I recently used the documentation for adding css to specific pages in a plugin, but doing so does not work.
My code is as follows:
@inject INopHtmlHelper NopHtml
@{
Layout = "_ColumnsTwo";
NopHtml.AppendPageCssClassParts("html-account-page");
NopHtml.AddCssFileParts(ResourceLocation.Head, "~/Plugins/Widgets.MyWidget/Content/css/style.css", excludeFromBundle: false);
}
And the error comes at the `ResourceLocation.Head` part:
void INopHtmlHelper.AddCssFileParts(string src, [string debugSrc = ""], [bool excludeFromBundle = false])
I am developing in nop 4.5.0, so is there a breaking change with this advice between 4.5 and 4.6? Or is there something else I am doing wrong?