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, ...How do you change the background-image for a sight?How do you change the background-image for a sight?
Previous
 
Next
New Post
3/10/2006 10:57 AM
 

I have a background image that I am trying to add to my sight.

But every time I upload my skin and do a preview I get the same old BLUE background from the sample skins.

I’ve gone through the skinning document several times with no answers.

The example skins that I see on this sight have there own backgrounds.

What document will explain to me how to set my own sight background in DotNetNuke?

 
New Post
3/10/2006 12:15 PM
 
There should be present with every skin package a skin.css file in which you can define the background image for the "body" tag.
 
New Post
3/10/2006 4:26 PM
 

I understand your frustration.  This has confused many of my customers as well.  If a skin explicitly sets the background color/style, the background image that you upload in Admin - Site Settings will be essentially ignored.  The background of the body may be set to the image, but if there is a table inside of the body that stretches to 100% width and height that has a background color, it won't matter.  I believe this is the case with the DNN default skins, and most skins in general.

 
New Post
3/10/2006 5:37 PM
 

OOOK.. I can see there is some confusion here - so let's clarify a couple of things

the DNN default skin uses a couple of classes that you might like to know may need changing

.pagemaster - that is the one you need to change or.. remove if you want the body class to be made visible.

.skinmaster - that's the one that holds the skin information.

I suppose the best analogy, in understanding the way the default skins work -

So, try changing these classes and seeing the results..

I think it also depends on how you actually start the skinning process off. - some start with nothing, but me, and I've always advocated it - use the default skins and simply take the colour i'm working with to start it.. and thats what you did, but you'll need to know where to change it so you can start benefitting from it.. so you've got a couple of options..

  • Change the pagemaster and skinmaster classes
  • Remove the pagemaster to get your body class to be visible.

Hope this helps you on your quest!

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
3/10/2006 6:26 PM
 

Good point nina, my solution perhaps approached the issue from too much of a beginner standpoint, like someone who is not familiar with style sheets, as many of my customers are.

As far as editing the stylesheet of the default skins, nina is absolutely correct, the pagemaster and skinmaster classes are what current sets the background-color.  You can change these settings by creating a custom skin or override them by going into Admin - Site Settings and scrolling down and expanding the Stylesheet Editor section, adding the following lines and clicking 'Save Style Sheet'

.pagemaster{background-color:transparent;}

.skinmaster{background-color:transparent;}

This will allow you to set the Background Image in Admin-Site Settings.  If you wanted to set the background via the style sheet itself, you could add the following lines instead:

.pagemaster{background-color:transparent;background-image:url(bgimage1.jpg);}

.skinmaster{background-color:transparent;}

Where bgimage1.jpg is the url or file and path of your background image relative to your corresponding skin html file.  I recommend using relative paths instead of fully qualified urls (which hardcode http) to prevent issues with your skin causing mixed content errors if it is used on an SSL secured (https) page.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How do you change the background-image for a sight?How do you change the background-image for a sight?


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