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

adding a logo to a theme


Go to End


3 Posts   3798 Views

Avatar
gooberguy

Community Member, 9 Posts

13 April 2010 at 6:45pm

hi all im using the http://www.silverstripe.org/coffeeNcream/ theme, and was wondering is there any way to get a small logo in the header on the right side of the header text?

Avatar
3dgoo

Community Member, 135 Posts

22 April 2010 at 6:52pm

Hello,

Yes you can. In the themes/coffeeNcream/templates/Page.ss template file:

  <div class="header">
    <div class="title">
      <h1>$Title <img src="{$BaseHref}themes/coffeeNcream/images/siteLogo.gif" alt="" class="headerLogo" /></h1>
    </div>
  </div>

See where I have put the img tag. You can put it anywhere here in the header, then just edit your css to put it where you want.
You need to make sure you put siteLogo.gif in themes/coffeeNcream/images/ for this specific code to work.

Avatar
biapar

Forum Moderator, 435 Posts

2 May 2010 at 8:15pm

... or you can create a specialpage with some setup fields