How to hide TERMS OF USE, PRIVACY STATEMENT and/or COPYRIGHT

Location: BlogsAll BlogsDNN Tips    
Posted by: mamlin 12/2/2008 8:50 AM

Sometimes DNN provides more default features than the average admin needs.  A common example is the collection of links that appear on every page for TERMS OF USE, PRIVACY STATEMENT and COPYRIGHT (actually COPYRIGHT is a label, not a link).  Fortunately it's very easy to remove any or all of these links without editing your DotNetNuke skin...

Hide Unwanted Links with CSS
The TERMS and PRIVACY links as well as the COPYRIGHT label are all provided through DNN skin objects.  These particular skin objects are common to every version of DNN and are assigned the same ID values regardless of the skin you are using.  Knowing this, it's easy to add a small bit of CSS to get rid of the links/labal on a DotNetNuke portal without actually editing the DNN skin.

Here are the rendered ID values of the links:

      TERMS link ID value = dnn_dnnTERMS_hypTerms
    PRIVACY link ID value = dnn_dnnPRIVACY_hypPrivacy
  COPYRIGHT span ID value = dnn_dnnCOPYRIGHT_lblCopyright  <- Not a link!

To hide a link, use your portal's SITE SETTINGS->STYLESHEET EDITOR found under the ADMIN menu (you must be logged in as an ADMIN or as a HOST to see the ADMIN menu).

In STYLESHEET EDITOR, add the following lines to the bottom of the edit box.  Be careful not to replace or delete anything else in the box.  (Note: Only add the lines for the links/label you wish to hide.)

  a#dnn_dnnTERMS_hypTerms{display:none}
  a#dnn_dnnPRIVACY_hypPrivacy{display:none}
  span#dnn_dnnCOPYRIGHT_lblCopyright{display:none}


Once you've added the line(s), click "Save Style Sheet" and you're done.  The links/label should now be hidden on all pages of the portal.

Permalink |  Trackback

Comments (4)   Add Comment
Re: How to hide TERMS OF USE, PRIVACY STATEMENT and/or COPYRIGHT    By Chuck Self on 3/23/2009 8:03 PM
mamlin- Just read this post and thought I'd give you my $.02 on this approach. While this absolutely takes care of the "visual" links from the user side, the link is still in the code. Google (and I'm sure other search engines) can penalize your site for having Hidden Links. I wrote a recent blog about using the robots.txt file to exclude these pages to eliminate the Duplicate Content penalty of these pages (although there are many ways around this). The Robots.txt solutions is appealing because it doesn't require a Skin change either. FYI - If you pull up these pages on your website and check Google's Cache you will probably find these pages in its index. Although I think this approach works "visually", I wouldn't risk the search engine applying a penalty for hidden links and duplicate content (you could be getting hit twice). Again, my $.02, take it for what its worth. Thanks for all the great post and keep them coming.

Re: How to hide TERMS OF USE, PRIVACY STATEMENT and/or COPYRIGHT    By mamlin on 3/23/2009 8:22 PM
Chuck- Thanks for the feedback. I did read your post on this recently and I like the idea of excluding the pages from indexing via "robots.txt". My post was in response to a forum question on an easy method to be rid of the links without altering code or skin. Adding a block for each link to Robots.txt is a great addition for anyone choosing to forgo the default TERMS and/or PRIVACY links.

Re: How to hide TERMS OF USE, PRIVACY STATEMENT and/or COPYRIGHT    By Bet Zimmerman on 1/8/2010 10:32 PM
How do you hide the Content and Preview boxes? They appear on our home page: http://www.woodstockct.gov even when a user is not logged in. HELP! Thanks in advance.

Re: How to hide TERMS OF USE, PRIVACY STATEMENT and/or COPYRIGHT    By mamlin on 1/8/2010 10:32 PM
Bet Zimmerman- The most likely cause is a module on your homepage with EDIT permission granted to "all users" or "unauthenticated users". I suggest you take a close look at your settings for the homepage's EVENTS module instances -- I've seen some quircky results in the past when this module's permissions were misconfigured. Good luck!


Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
You are here:  
 
>> Back to the top of the blog list...

 
        account   advanced   blog   click   cloud   code   content   create   data   different   events   example   feature   file   files   free   function   good   google   just   line   list   module   modules   need   option   page   pages   query   results   role   roles   script   search   select   settings   simple   site   skin   solution   step   tags   terms   time   user   users   value   version   want  
Minimize Google AJAX Search
 
Search ES:  
This is an example of a Google AJAX Search with asynchronous search execution for two searches.  See our blog series, 'Add Google AJAX Search to your DNN skin' for info and sample code.
 
     
Minimize Get the T-Shirt
 
Shirts by Eguana Solutions
(Be cool like us!)
 
     
Minimize Most-Commented Blogs
 
 
     

Minimize Looking for more info?
 

There are tons of helpful
posts from Eguana Solutions 
on the DotNetNuke.com forums.
  
 
Click HERE to see our posts.

 
     
Minimize Modules for Sale
 

Looking for Eguana's modules? 
We're still working on them!
  

Until ours are ready to dazzle and
amaze, you'll have to make do with
the thousands of modules already
available on SnowCovered.

 
     
Minimize Favorite Modules
 

There are many great DNN modules.
A few we highly recommend are:
 
Dynamic Registration
Total control over the user signup process.  Create custom forms, execute your own SQL, use the integrated payment processing features to assign user roles, validate USERNAMEs via AJAX and much more.  Very cool.
 
URL Master
Change to friendly URLs that really ARE friendly.  Add keywords into your page URLs for better SEO.  Create 301 redirects for individual pages.  Force visitors (and search bots) to a single domain (i.e., make everyone use the "www" version of your site's URL or vice versa).  One of the single best upgrades for any DNN site.
 
Document Exchange 5 (DMX5)
Drag-and-drop from Windows Explorer directly into the DMX file manager!  File versioning, file and folder moderation, extend user permissions down to the file level (for user groups and even for individual users).  Infinite file and file info presentation options via custom display templates.  Store files locally or remotely via UNC (i.e., can securely store files somewhere besides your web server).  Much more.
 
XMOD by DNNDev
Rock-solid form module for data collection.  From simple feedback / email forms to complex, multi-part tabbed forms.  XMOD is different from other form modules because XMOD does not create a new database table for every new form definition -- an important feature if you plan to create dozens or hundreds of forms over the life of your DNN instance!  Excellent support from the developer and an active community around this module.
 
If you desire your form module to create a new DB table for each new form definition, a great alternative to XMOD is the Dynamic Forms module from DataSprings.  Dynamic Forms offers direct DB access beyond that found in XMOD as well as an easy drag-and-drop form builder option to help you get up and running very quickly.

 
     

Login