Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Overriding the skin.css file.Overriding the skin.css file.
Previous
 
Next
New Post
4/13/2009 3:57 PM
 

I have looked all over the forums for hours and con't find something specifically for this problem.   I have read in the documentation and several other sites that if you have .ascx skins they will by default use the skin.css file.   That is fine and it works great.    I have a couple of pages although that I want to have a different skin on them.   My site is basically top to bottom generic.  Menu across the top, wide open space for content and a footer.   No columns.   Except on the Blog page I want to put a column on the left and skin it with different attributes.    I have created Blog.ascx and Blog.css in the skin folder.   But for some reason when I use Firebug I dont see the Blog.css file being loaded at all.   From what I read the Blog.css file is supposed to override the skin.css file.   Is this correct?   If so is there a setting or some sort of entry somewhere that makes this happen?  I have gone through and done the Update to the skins in the administration page and everything but I don't seem to be able to get this Blog.css file to load.

Thanks,
Steve

 
New Post
4/13/2009 5:46 PM
 

You are close.

The way it works for me (I'm sure there are other options) is to put your Blog.ascx in a different folder.  So the Skins folder contains a folder for your current skin AND a folder Blog.  In Folder Blog you can put Blog.ascx and Blog.css, but rename Blog.css to skin.css.

On the blog page open up settings and expand Advanced.  In the list of skins you will find your Blog folder and the Blog skin inside.

HTH


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/13/2009 5:58 PM
 

Dnn will always load the skin.css file.

If you create the blog.ascx first it could be that DNN does not see the blog.css file intil you parse the skin, or restart the application (from host settings)

 
New Post
4/14/2009 9:46 AM
 

I really appreciate everybody's reply and hope I did not waste anybody's time.   I restarted IIS and things seem to start working as they should and the css files are now being seen.   Unfortunately I could not recall this post at the time because of the moderation.   I was successful in overriding the skin.css file with just those elements that I needed to.   I used Firebug with Firefox to confirm that the styles were indeed pulling from the correct file.   Firebug is a bit misleading as well, it only shows the blog.css file if it is being used for that particular element you have loaded.    I only put those elements I wanted to override and on elements I did not override the blog.css file was not appearing.    But the combination of these items did solve my problem.   Thank you to everybody that helped me with this.

 
New Post
4/14/2009 5:35 PM
 

If you want to see what CSS files are loaded you should open the "head" section in the source firbug shows you.

There you can see what files are loaded.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Overriding the skin.css file.Overriding the skin.css file.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out