Jump to:

1384 Posts in 493 Topics by 522 members

Themes

SilverStripe Forums » Themes » adding a logo to a theme

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1676 Views
  • gooberguy
    Avatar
    Community Member
    9 Posts

    adding a logo to a theme Link to this post

    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?

  • 3dgoo
    Avatar
    Community Member
    133 Posts

    Re: adding a logo to a theme Link to this post

    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.

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: adding a logo to a theme Link to this post

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

    1676 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.