Header Logo

Header Logo

by Ali Shah -
Number of replies: 4
In Moodle 1.9, I am using the Standard White theme. Within 'header.html' (in the theme folder) I have made a change to display my own logo. However, this has changed the header logo on the front/home page only, but has had no affect on any of the other pages.
 
Within '/theme/standardwhite/header.html' I replaced: 
 '<?php echo $heading ?>'
 
With:
 '<h1 class="headermain"><img src=<?php echo $CFG->httpswwwroot.'/theme//standard/pix/logo.jpg' ?>></h1>'
 
You will notice my logo resides in the 'standard' theme 'pix' folder - however this should not make a difference. I thought that by adding the above line would have added the logo to all pages in the header section, across the entire site. This is what the moodle theme documents advise.
I could not find any other file which I could change to have the header logo displayed on all pages. Any suggestions ?
 
Thanks
Average of ratings: -
In reply to Ali Shah

Re: Header Logo

by Ali Shah -

I've managed to sort the problem - Thanks

In reply to Ali Shah

Απάντηση: Re: Header Logo

by John John -
Hello,

I have the same problem using another theme. Can you please provide me with the solution.

Thanks
In reply to John John

Re: Απάντηση: Re: Header Logo

by Lewis Carr -
There are two places in header.html that you must edit.
They are both seperated with comments

// This is what gets printed on the home page only


// This is what gets printed on any other page with a heading

Make sure that your changes go in each of the areas respectively.
In reply to Ali Shah

Re: Header Logo

by Monica Franz -
Hi!
It's been awhile, when you set in the question about the logo in the theme standardwhite!

We are using Moodle 1.9.3 and I want to put in the logo on the frontpage. I replaced the same lines in header.html in the theme standardwhite as you did, and it works fine with the small logo (width= 100 and height 50 pixel), but with the large one (width=100 to 600, height=100) it doesn't work at all. When I use the small logo in the frontpage as well it's okay! Both logos (large and small) work in the formal-white-theme!

What's the size of your logo at the frontpage? I'll try the size with ours.

Anyway is there a size limit (upwards and downwards) for the logo on the frontpage in the theme standardwhite (especially the width)?

Thanks!