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, ...Get rid of all DNN CSSGet rid of all DNN CSS
Previous
 
Next
New Post
1/10/2006 3:34 PM
 

For removing (changing) them from one skin, you would just explicitly override the rule properties that you want to change.

Or, you could put the rules you want to keep in your portal.css for each portal and empty the skin.css

If you wanted to do it programatically for one skin you could remove the link that references the default.css with code in the skin.ascx file something like this:

<%

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

Dim oCSS As Control = Me.Page.FindControl("CSS")

If Not oCSS Is Nothing Then

   Dim oLink As HtmlGenericControl

   ' find the default stylesheet link control
   oLink = CType(oCSS.FindControl(CreateValidID(Common.Globals.HostPath) & "default.css"), HtmlGenericControl)

   If Not oLink Is Nothing Then
      oCSS.Controls.Remove(oLink)
   End If

End If

End Sub

%>


DotNetNuke Modules from Snapsis.com
 
New Post
1/10/2006 5:07 PM
 
Beautiful, thank you!

- Lance 'ji' May
 
New Post
1/11/2006 3:18 AM
 

Hi again,

thanks for all your postings. The information provided is very valueable.

Here is what I will do now:
I'm gonna make a copy of the default.css in case I want to restore it someday. Then I'm gonna delete all the styles in this css file.

What I'm going to do then is to try if I can get rid of all the HTML tags I don't want and  need.
For example: A <span> tag is created everytime you use the [TITLE] token in your containers. Since I don't want the DNN css formats I neither want the tags created by DNN.

Has anyone of you tried something like that? Customizing the functionality of DNN?
I also don't want portal editors to be able to use different font faces or font sizes. I don't want any <font> tags in the HTML created. Can I eliminate them? Are there any documentations on how to customize DNN, especially the Text Editor?

A lot of questions, I know. Thank you for your help.

Steve

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Get rid of all DNN CSSGet rid of all DNN CSS


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