Themes

 
 
Me
Re: Adding clickable logo in theme based on Fusion
Group Moodle Course Creator Certificate holders

Hello Pinguas,

If you want to just add a logo without making it a clickable link, add

background-image: url([[pix:theme|imagename]]);

To any existing div in the theme, making sure to put your image into the pix folder.

You can then add other elements to position your image like

background-position

background-repeat

So for example, in my CSS I added

#page-site-index #region-header {
    background-imageurl("/moodle24/theme/image.php?theme=fusion&component=theme&image=banner");
    background-positionleft top;
    background-repeatno-repeat;
}
This added a banner background image to the region-header of the fusion theme. I had to play around with the margins a little in surrounding divs.
 
Average of ratings: -