I have a minor problem that I've been trying to resolve for a few hours. No one else seems to have encountered this issue so it must be a problem with the head section of my site. When I use the meta tags macro I get an additional title tag in the source just before the close of the head. Not really a big deal but it does mean my markup doesn't validate. If I don't use the meta tags macro the extra tag does not appear.
I have pasted the relevant code from my template and the outputted markup. Do you have any suggestions regarding the cause of this problem? Thanks for your time.
I am having a similar issue except I don't use a macro to generate my existing title. Even if I don't use a title tag one is always created and appended to the head across every page of the site.
Does anyone have a solution to this? I am using Umbraco 4.5 .NET 4.
I'm adding the title-tag from XSLT and did have this problem too. My solutions was to add the title-tag in the masterpage and add a visible="false" to it:
<%-- "Hack" to remove Two Title-tags. --%>
<title runat="server" visible="false"></title>
Extra Title Tag in Head
Hi Chris, thank you for creating this package.
I have a minor problem that I've been trying to resolve for a few hours. No one else seems to have encountered this issue so it must be a problem with the head section of my site. When I use the meta tags macro I get an additional title tag in the source just before the close of the head. Not really a big deal but it does mean my markup doesn't validate. If I don't use the meta tags macro the extra tag does not appear.
I have pasted the relevant code from my template and the outputted markup. Do you have any suggestions regarding the cause of this problem? Thanks for your time.
Umbraco: 4.0.3
ASP.Net: 3.5
Windows Server 2008. IIS 7.0
I am having a similar issue except I don't use a macro to generate my existing title. Even if I don't use a title tag one is always created and appended to the head across every page of the site.
Does anyone have a solution to this? I am using Umbraco 4.5 .NET 4.
Regards
David
Hi,
I'm adding the title-tag from XSLT and did have this problem too. My solutions was to add the title-tag in the masterpage and add a visible="false" to it:
Hi,
I have only just seen your ticket, so I am sure by now you have solved your problem?
My guess is that in your child template you were also including an empty title tag in the heading section?
Cheers,
Chris
Hi Guys,
Thanks Bernsten. That's a great solution.
/Rune
is working on a reply...