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, ...Help with CSS backgrounds and font colors; also remove searchHelp with CSS backgrounds and font colors; also remove search
Previous
 
Next
New Post
5/7/2009 3:11 PM
 

Just a regular volunteer Joe working on new DNN 5.00  site and need help so I don't go trial and error. TIA

1) I want to remove that search bar. What is the file name, code and where is it located?

2) I want to change a few font and background colors. See picture below. Where is the css, code and locations?

 
New Post
5/7/2009 5:39 PM
 

1) It is located in the skin .ascx file for whatever skin you are using. It looks like you downloaded a skin from somewhere - lets call it the "Gold" skin.  So your skin file should be located in YourWebsite/Portals/0/Skins/Gold/homepage(or whatever name of skin that page is using).ascx

The search bar is inserted in the skin using a skin object.

I don't have a skin in front of me right now but these are the two tags that you should remove off of memory.  The top one should be located at the top of the skin - this is telling the skin where the Search skin object is located.  The second tag is located inside of the HTML itself, where the search box was placed.

<%@ Register TagPrefix="dnn" TagName="Search" Src="~/Admin/Skins/Search.ascx" %>  <---- REMOVE

<dnn:LINKS runat="server" ID="dnnSearch"  /> <---- REMOVE

2) The CSS is located in the same folder as the above file, and is named skin.css.  If you need to figure out what CSS tags you need to modify, I would just deconstruct your webpage in a browser source view.  So if you wanted to figure out the CSS style the Privacy Statement is using in Internet Explorer or Firefox - just left click - View Source - Ctrl + F - search for Privacy Statement - and you will be able to see what "class" it is using.  You can also figure out CSS styles by looking at the skins .ascx file that you modified in step 1. Most skins in Dotnetnuke make use of a .Normal class for the main body text.

Hope this helps

 

 
New Post
5/8/2009 7:06 AM
 

Thanks and was able to remove when found in these files....
index 1024.html & index 1024.ascx.

I also found my font colors for the Privacy.. & other menu in the skin.css.

Now all I need is backgrounds colors for the Modules? Is that in my skin.css or other? What code would that be?

TIA so... much!

 
New Post
5/8/2009 10:50 AM
 

If you want to put background colors on the modules themselves I would apply the styles to the containers. Containers basically surround all modules.  You can set a default container under your Site Settings - and the selections come from whatever files you have in /Portals/0/Containers/ folder.  There are also container examples in the default skin folder.  Here is what the code will look like:

 

<div>
      <dnn:ACTIONS runat="server" id="dnnACTIONS"/>
      <dnn:ICON runat="server" id="dnnICON" />
      <dnn:VISIBILITY runat="server" id="dnnVISIBILITY" visible="False"/></div>
      <div class="BrownContainer"  id="ContentPane" runat="server"></div>
      <div>
      <dnn:ACTIONBUTTON1 runat="server" id="dnnACTIONBUTTON1" CommandName="AddContent.Action" DisplayIcon="True" DisplayLink="True" />
      <dnn:ACTIONBUTTON2 runat="server" id="dnnACTIONBUTTON2" CommandName="SyndicateModule.Action" DisplayIcon="True" DisplayLink="False" />&nbsp;<dnn:ACTIONBUTTON3 runat="server" id="dnnACTIONBUTTON3" CommandName="PrintModule.Action" DisplayIcon="True" DisplayLink="False" />&nbsp;<dnn:ACTIONBUTTON4 runat="server" id="dnnACTIONBUTTON4" CommandName="ModuleSettings.Action" DisplayIcon="True" DisplayLink="False" />
      </div>

The div with the id="contentpane" is where you content is going to be placed, so you can add a CSS style to that div.  You can place that CSS style right into the skin.css file for your attributes.  You can also use a container.css file if you want, but I like keeping all my styles in one place.

In my opionion things can start looking kind of boxy if you put backgrounds on all your modules. Are you sure you want to do this and not just put a background on your whole content area?

 

 
New Post
5/8/2009 11:19 AM
 

Giff,

You may also want to install some CSS helper tools ... Firebug for Firefox and the IE Developer Toolbar for IE ..  Also IE8 has developer tools built in ...

These tools will allow you to point at item on the page and locate the appropriate HTML code and the associated CSS.  You can then change the CSS on the fly and see what will happen.

Good stuff.  Sure helps with "why is that happening"

Hope this help
Paul.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Help with CSS backgrounds and font colors; also remove searchHelp with CSS backgrounds and font colors; also remove search


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