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   1741 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, 133 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