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.

General Questions /

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

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

Multiple <title> tags


Reply


2 Posts   1026 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.