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.

Themes

Discuss SilverStripe Themes.

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

adding a logo to a theme


Reply

3 Posts   1697 Views

Avatar
gooberguy

13 April 2010 at 6:45pm Community Member, 9 Posts

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

22 April 2010 at 6:52pm Community Member, 133 Posts

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

2 May 2010 at 8:15pm Forum Moderator, 435 Posts

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