Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multiple <title> tags


Go to End


2 Posts   1974 Views

Avatar
staple

Community Member, 7 Posts

26 January 2009 at 11:48am

Hi there,

First..this is not a fresh install so maybe the installer changed something..

For some reason in the markup I have two <title> tags - page.ss looks like the below - if you visit www.sisusoftware.com and view the source you will see that $MetaTags is adding a second <title> - any ideas??

<head>
<title>Sisu Software - $Title</title>
<% base_tag %>
$MetaTags
<link rel="shortcut icon" href="/favicon.ico" />

<!--[if IE 6]>
<style type="text/css">

Avatar
ajshort

Community Member, 244 Posts

26 January 2009 at 11:50am

If you're using a custom <title> tag in your template, you need to use "$MetaTags(false)" to stop it automatically inserting another tag.