Nop 2.0 CSS file

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 yıl önce
Hello,

Do you know how to load file CSS on Nop 2.0 by this?

@*This is used so that themes can inject content into the header*@
@Html.Partial("Head")

In the table Setting,

if storeinformationsettings.defaultstoretheme = DarkOrange, it will use ~/Themes/DarkOrange/Views/Shared/Head.cshtml
if storeinformationsettings.defaultstoretheme = nopClassic, it will use ~/Themes/nopClassic/Views/Shared/Head.cshtml

Could you please explain how it works?
12 yıl önce
Nop 2.0 uses a themable view engine that locates views using the current theme. So the Head view will be loaded according to the current theme. Therefore, anything you put into it gets into your html page when the theme is active.
12 yıl önce
Thank you very much for your reply.

I think the engine is ThemableRazorViewEngine.

I will read it more to understand.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.