Masterpage CSS link?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Hey Guys :)

I have some content in a /folder/

and unfortunately nopCommerce seems to be linking my theme CSS files as so;

"App_Themes/mytheme/stylesheet.css"

When I would like it to be root relative;

"/App_Themes/mytheme/stylesheet.css"

But I can't find out where to add this backslash!  any ideas anyone?  Thanks :)
13 年 前
Hi Andy.... try

"~/App_Themes/mytheme/stylesheet.css"

~ goes to the root

otherwise you need  ./  or ../

Depends on where you folder is, hope that helps...
13 年 前
hey

Yeah I will try that, the only problem now is... where?

I cannot work out where to change it
13 年 前
I just tired the usual places.... modules, templates and root master...

believe it is to do with web.config file.... <pages theme="DarkOrange" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">

you can also change the publicStore.skin  - point to another CssClass

or you have yourStore/Controls/BaseNopPage.cs
line  131 - would have to be changed.. like adding another theme?
13 年 前
thanks :)

OK So I eventually realised this is taken care of by ASP.net themes and there's nothing you can do to change it really without adding exceptions etc..

Since I am not going to be changing themes, I turned themes off in the web.config file and hard coded the CSS links with root relative URLs into my root.master page..

This also means my custom 404 error page now works on all request, even if they have /folders/

thanks :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.