Logo not displaying on Hosted site

Logo not displaying on Hosted site

by John Brady -
Number of replies: 4

Moodle 1.9.2
I followed the directions below. And it worked out fine on my localhost Moodle, however, when I upload the "header.html “ to my Hosted site the logo fails to display.

In IE (ver, 6 and 7) a small box with a red x appears See attachment.
In Firefox nothing appears in the logo position.
(Note: there are 3 Moodles on the hosted server, the other 2 are working fine (1 Moodle is ver. 1.6.2 and the other is ver. 1.8.2)).

Directions: Adding the Logo
Back in the main folder for your theme open the file named "header.html" inside of your text editor. You will now need to look for the first ocurrance of the following: <h1> Immediately after this code, add the following (assuming you followed the exact instructions for copying and renaming your logo):
<img src="<?php echo $CFG->themewww .'/'. current_theme() ?>/pix/logo.gif" alt="" />

From my revised "header.html" file
<?php print_container_start(true, '', 'header-home'); ?>
<h1 src="<?php echo $CFG->themewww .'/'. current_theme() ?>/pix/logo.gif" alt="" /><?php echo $heading ?></h1>
<div echo $menu ?></div>
<?php print_container_end(); ?>

Any suggestions would be appreciated.
Thanks
Attachment logo.JPG
Average of ratings: -
In reply to John Brady

Re: Logo not displaying on Hosted site

by John Brady -

I made some adjustments to the logo.gif (I made it shorter and wider) then  uploaded the new logo.gif and the problem cleared.

In reply to John Brady

Re: Logo not displaying on Hosted site

by Margaret Richards -
Hi, I'm having the exact same problem. How small did you make your logo? Mine is 98 x 222. Here's my code (following the same instructions you cited and having the same firefox / ie results):

<h1 class="headermain">
<img src="<?php echo $CFG->themewww .'/'. current_theme() ?>/pix/logo.gif" alt="" /><?php echo $heading ?>
</h1>
In reply to Margaret Richards

Re: Logo not displaying on Hosted site

by John Brady -

My image is now Height: 54 and Width: 203

In reply to John Brady

Re: Logo not displaying on Hosted site

by Alex Race -
it appears you modified the H1 tag. leave the H1 tag in tact, and add your src to the img tag...looks something like this:

img

sent from my mobile, stuck in traffic