gs1219716 wrote: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.
Hi,
As far as I understand, you need to style our plugins to fit your theme styling.
To do this, you have to go to the desired plugin folder > Themes.
The easiest approach is to copy the Default Clean folder, paste it and rename it with the name of your theme.
Repeat this procedure for each of our plugins.
Now you can modify the CSS specifically for your theme.
By the code you pasted here:
if(String.Compare(Model.Theme, "DefaultClean", true) == 0)
{
Html.AddScriptParts("~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Scripts/MegaMenu.js");
}
I guess that you are not using the latest version of nopCommerce or not the latest version of our plugins for 3.60.
We have removed this hard-coded check few weeks ago. The Mega Menu was the only plugin, which had it.
Our plugins are fully usable for the theme you have. Just add a folder named by your theme, with the proper CSS files inside and you can modify the plugin to fit your theme.
I hope this will help you !