- 4
How can I apply the styles from the plugins to my own theme. Nothing I do seems to work. I have tried renaming the DefaultClean theme to the name of my theme thinking this code would then apply the styles. It does not. During debug the below code doesn't even seem to execute. I have also tried adding the html.xxx() lines of code directly into _root.head of my theme and that doesn't work either. I like some of your themes, motion in particular but it doesn't have all the plugins i want. We like our site and want to use the plugins on our theme but can't seem to wire up the css and js from your plugin. We would also want to modify the css a bit. Thanks.
@model SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuModel
@{
Html.AddCssFileParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Themes/" + Model.Theme + "/Content/MegaMenu.css");
var supportRtl = this.ShouldUseRtlTheme();
if (supportRtl)
{
Html.AddCssFileParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Themes/" + Model.Theme + "/Content/MegaMenu.rtl.css");
}
Html.AddScriptParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Scripts/jquery.lazyload.min.js");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.js");
if(String.Compare(Model.Theme, "DefaultClean", true) == 0)
{
Html.AddScriptParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Scripts/MegaMenu.js");
}
}
@model SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuModel
@{
Html.AddCssFileParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Themes/" + Model.Theme + "/Content/MegaMenu.css");
var supportRtl = this.ShouldUseRtlTheme();
if (supportRtl)
{
Html.AddCssFileParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Themes/" + Model.Theme + "/Content/MegaMenu.rtl.css");
}
Html.AddScriptParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Scripts/jquery.lazyload.min.js");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.js");
if(String.Compare(Model.Theme, "DefaultClean", true) == 0)
{
Html.AddScriptParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Scripts/MegaMenu.js");
}
}