adding an image to a theme header

adding an image to a theme header

by Donny Bell -
Number of replies: 1

I have created a theme using themato theme engine. I now wish to add an image I am creating in Photoshop to this new theme and use it as the background in the header.  I have no clue on where to add this or how long the width should be? I am so green about dealing with moodle. Please help.... I will be using Moodle 1.9

Average of ratings: -
In reply to Donny Bell

Re: adding an image to a theme header

by Mary Evans -

Hi,

Is there an image in this header of this theme already? If there is then depending on where the image is stored in your theme and what ever dimentions the header is, then all you need to do is replace it with your new image provising that they are the same dimentions.

Otherwise add...

#header, #header-home { background: url(images/header.jpg) left top no-repeat;}

Providing your header.jpg image is in theme/yourthemetothemename/images/header.jpg and you add the CSS (see above) to the color_styles.css file in your theme (or whatever CSS files is in your theme) then the header should show up.

HTH

Mary