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...Performance and...Performance and...How to Remove extra Meta tagHow to Remove extra Meta tag
Previous
 
Next
New Post
9/9/2011 5:18 AM
 
Hi,

  In my html page. There are very few meta tags are there. But when I make a DNN web page then it display a lot of Meta tag. How Can I remove this all tags.

  Also Guide How I can show Title tag on Top. When I see page source It show after all meta tag. But I want to show this tag Before all meta tags.

 Thanks. 
 
New Post
9/9/2011 4:01 PM
 
there is no way via the interface to do this - you can manually edit the default.aspx.cs and remove them from towards the bottom of the InitializePage function , though we never recommend core edits and you will have to remake these updates everytime you upgrade. As for the title tag, it's an annoying one, we simply use the asp.net code of page.header.title to set it (http://msdn.microsoft.com/en-us/library/system.web.ui.page.header.aspx) and asp.net for some reason does not place it first - ive never had a chance to dive down into it but I'm guessing its more correct to have it placed as the final tag before the head (as asp.net does) than as the first (as seems logical)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/9/2011 4:03 PM
 
please note, if you are logged in as host you can go to host->host settings and uncheck the "show copyright credits" checkbox and that will remove one of the meta tags that contains dotnetnuke information

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/24/2012 7:15 AM
 
Just in case anyone else ever sees this thread and needs to do something similar then if your page skin has a code behind file then you can use the following code to remove an existing meta tag and replace it with one of your own choosing. I had to take this approach because we have multiple sites on the same installation and only one of those sites wanted their site to be excluded from search indexes. As always use this at your own risk but it works fine on our installation.

Try
'remove the existing MetaRobots entry
page.Header.Controls.Remove(Page.Header.FindControl("MetaRobots"))

'build our own new entry
Dim mymetatag As New System.Web.UI.HtmlControls.HtmlMeta
mymetatag.Name = "robots"
mymetatag.Content = "noindex, nofollow"
page.Header.Controls.Add(mymetatag)
Catch ex As exception
'catch an exception if MetaRobots is not present

End Try
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...How to Remove extra Meta tagHow to Remove extra Meta tag


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