CSS not rendering when using multiple skins

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/18/2010 5:58:05 AM
TJ
Gravatar
Total Posts 19

CSS not rendering when using multiple skins

Hi!

I hope I am posting this in the right place.

(mojoPortal Version 2.3.4.1 MSSQL)

On my site, I am using 3 different skins.  I have 'Allow Setting Skin for Page?' check marked under the Admin menu and have uploaded my files that will be my 'site default' skin.  When viewing the pages using my chosen 'site default' skin everything renders perfectly.

I have a second skin which I created a new folder for and have chosen this new skin to use on one page only.  I can see the skin on the page, but the CSS will not render....the left and right side columns will not display the correct size or header images/ background, etc.

 

The weird thing, if I choose this new skin as the 'site default', everything renders perfectly - so I know the CSS is being grabbed and is uploaded properly to my server - BUT it only renders when it is the site default skin. 

For the life of me I can't figure out why it won't render if used as a second skin.

After searching the forum, I found this:

<add key="CombineCSS" value="false" />
<add key="MinifyCSS" value="false" />
<add key="CacheCssOnServer" value="false" />
<add key="CacheCssInBrowser" value="false" />

 

I implemented into my web.config and user.config file.  I also cleared my cache and it has not corrected the issue.

I got curious and tried setting multiple skins here using http://demo.mojoportal.com/ with the included skins available and I was able to replicate the issue.  Whatever skin is used as the 'non-default' secondary skin does not render the css properly.

Any suggestions or a work around to get the css displaying properly?

Perhaps I have missed a post in the forum about this - please pardon me if I have.

Best,

T J

5/18/2010 7:37:24 AM
Gravatar
Total Posts 18439

Re: CSS not rendering when using multiple skins

Hi,

I'm not sure what is causing the problem you are having but I can say you should not set this to false:

<add key="CombineCSS" value="false" />

it should be true otherwise none of true other settings will have any effect.

Note also that in medium trust hosting it could be issues with theme.skin file because in medium trust it cannot use the theme.skin file from the skin folder instead it comes from App_Themes/Default/theme.skin for ALL skins so if the skins need different settings there it will be a problem that cannot be solved in medium trust.

For example artisteer skins need different theme.skin settings than other skins and even Artisteer skins made in Artisteer 2.3 requires different settings than Artisteer 2.4. So whatever skins you choose for indivudual pages need to be skins that need the same settings.

Hope it helps,

Joe

5/18/2010 8:17:50 AM
TJ
Gravatar
Total Posts 19

Re: CSS not rendering when using multiple skins

Hi Joe,

Thank you so much for your reply.

My hosting environment is not Medium Trust.

I am trying to use 3 skins:  2 are made with Artisteer 2.3 and 1 with Artisteer 2.4

The 2 skins made with Artisteer 2.3 will not work on different pages - at least the CSS will not render if the skin is not set as the 'default' site skin.  I have not tried the 2.4 version skin yet.

I was able to duplicate the issue here on the demo - are you running on medium trust?

Initially <add key="CombineCSS" value="false" /> was set to 'true' but I changed it to false to see if it would make a difference, which it hasn't.

Setting a different page skin , the new menu and colours display - just not the css for the left, right center sections.

I'm stumped.

I wonder if my web host is somehow blocking or caching something.

 

Thanks for your help.

You must sign in to post in the forums. This thread is closed to new posts.