Jump to:

1347 Posts in 439 Topics by 514 members

Themes

SilverStripe Forums » Themes » Noob Question? How to change site name?

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 2596 Views
  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Noob Question? How to change site name? Link to this post

    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.

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Noob Question? How to change site name? Link to this post

    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.

  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Re: Noob Question? How to change site name? Link to this post

    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" 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>

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Noob Question? How to change site name? Link to this post

    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>

  • Thermalzombie
    Avatar
    Community Member
    27 Posts

    Re: Noob Question? How to change site name? Link to this post

    Just wanted to say thankyou for all the help.

    2596 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.