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.

Themes /

Discuss SilverStripe Themes.

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

Noob Question? How to change site name?


Go to End


5 Posts   3542 Views

Avatar
Thermalzombie

Community Member, 27 Posts

6 July 2009 at 1:19am

Hi just installed Silverstripe and cannot find out how to change the sites name and slogan any help would be appretiated.

I did find a referance in a file called page.ss but dont no for sure if this is the correct place to make changes.

Also If I change the color of some of the images will I have to flush the chache I was reading a tutorial and dont really understand how to do that.

The website URL is: www.thebrumbyshop.com

Thanks for the reply's.

Avatar
Nivanka

Community Member, 400 Posts

6 July 2009 at 2:19am

to change the Site's name you will have to edit the template files of the blackcandy theme.

themes/blackcandy/templates/Page.ss

Thats the file.

Avatar
Thermalzombie

Community Member, 27 Posts

6 July 2009 at 2:26am

Would somebody mind giving me an example could you change it to CHANGE HERE?

Thankyou.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >

<head>
<% base_tag %>
<title><% if MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; Your Site Name</title>
$MetaTags(false)
<link rel="shortcut icon" href="/favicon.ico" />

<% require themedCSS(layout) %>
<% require themedCSS(typography) %>
<% require themedCSS(form) %>

<!--[if IE 6]>
<style type="text/css">
@import url(themes/blackcandy/css/ie6.css);
</style>
<![endif]-->

<!--[if IE 7]>
<style type="text/css">
@import url(themes/blackcandy/css/ie7.css);
</style>
<![endif]-->
</head>
<body>
<div id="BgContainer">
<div id="Container">
<div id="Header">
$SearchForm
<h1>Your Site Name</h1>
<p>your site&#39;s tagline here</p>
</div>

<div id="Navigation">
<% include Navigation %>
</div>

<div class="clear"><!-- --></div>

<div id="Layout">
$Layout
</div>

<div class="clear"><!-- --></div>
</div>
<div id="Footer">
<% include Footer %>
</div>
</div>

</body>
</html>

Avatar
Nivanka

Community Member, 400 Posts

6 July 2009 at 2:28am

Hi, here is the code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

<head>
      <% base_tag %>
      <title><% if MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; Your Site Name</title>
      $MetaTags(false)
      <link rel="shortcut icon" href="/favicon.ico" />
      
      <% require themedCSS(layout) %>
      <% require themedCSS(typography) %>
      <% require themedCSS(form) %>
      
      <!--[if IE 6]>
         <style type="text/css">
          @import url(themes/blackcandy/css/ie6.css);
         </style>
      <![endif]-->
      
      <!--[if IE 7]>
         <style type="text/css">
          @import url(themes/blackcandy/css/ie7.css);
         </style>
      <![endif]-->
   </head>
<body>
<div id="BgContainer">
   <div id="Container">
      <div id="Header">
         $SearchForm
          <h1>CHANGEHERE YOUT SITE NAME</h1>
       <p>CHANGEHERE YOUR SITE TAG LINE</p>
      </div>
      
      <div id="Navigation">
         <% include Navigation %>
       </div>
       
       <div class="clear"><!-- --></div>
      
      <div id="Layout">
       $Layout
      </div>
      
    <div class="clear"><!-- --></div>
   </div>
   <div id="Footer">
      <% include Footer %>
   </div>
</div>

</body>
</html>

Avatar
Thermalzombie

Community Member, 27 Posts

6 July 2009 at 5:27pm

Just wanted to say thankyou for all the help.