Themes

How to change the logo in Anomaly theme?

 
 
Picture of Javier Fernandez
How to change the logo in Anomaly theme?
 

Hi there,

I´ve looking how to replace Moodle logo in the footer but but I couldn´t find it. Could you help me with this please?

Thanks,

Javier

 
Average of ratings: -
It's only an avatar...
Re: How to change the logo in Anomaly theme?
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Javier,

Which version of Anomaly are you using. 1.9 or 2.0?

Anomaly for Moodle 1.9

replace the Moodle logo found in the following location in relation to your site's Moodle installation root folder...

wwwroot/theme/anomaly/images/logo.jpg

making sure your replacement is the same size of 82pixels wide by 21pixels high

Anomaly for Moodle 2.0

replace the Moodle logo found in the following location in relation to your site's Moodle installation root folder...

wwwroot/theme/anomaly/pix/moodlelogo.gif

making sure your replacement is the same name and size of 100pixels wide by 30pixels high.

That's all you need to do.

HTH

Mary

 
Average of ratings:Useful (2)
Picture of Javier Fernandez
Re: How to change the logo in Anomaly theme?
 

Hi Mary,

Thank you so much for your help. That is what I was doing and was getting mad. Aparently, there is also a cache file in the moodle data folder that I had to delete.

/var/www/moodledata/cache/theme/anomaly/pix/moodle/moodlelogo.gif

After deleting the file, the new logo just shows up.

The only thing is that the new logo is still pointing to moodle.org. Do you know how to change it?

Thanks

Javier

 

 
Average of ratings: -
It's only an avatar...
Re: How to change the logo in Anomaly theme?
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi,

Well assuming you are using Moodle 1.9 - using Notepad and look for the following code towards the top part of the footer.html file...and change the highlighted URL to your own website URL...

<div id="footer-logo">
<a href="http://moodle.org" target="_blank"><img src="<?php echo $CFG->themewww .'/'. current_theme() ?>/images/logo.jpg" title="Moodle <?php echo $CFG->release ?>"</a>
</div>

 
Average of ratings: -
Picture of Javier Fernandez
Re: How to change the logo in Anomaly theme?
 

Hi Mary,

Thanks for your reply.

I am using Moodle 2.0, so I am wondering if you would know how to change it there.

Javier

 
Average of ratings: -
It's only an avatar...
Re: How to change the logo in Anomaly theme?
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

It's almost the same in the footer of the general.php and frontpage.php which you will find in the layout files.

Themes 2.0 FAQ is a good starting point for lerning about Moodle 2.0 theme customisation.

HTH

Mary

 
Average of ratings: -
Picture of Javier Fernandez
Re: How to change the logo in Anomaly theme?
 

Hi there,

Thanks Mary, so kind as usual.

Just in case somebody else is trying to change the url too. In moodle/lib/outputrenderers.php. line 504

'<a title="Company" href="http://www.company.com/">' .

Thanks,

Javier

 
Average of ratings: -
It's only an avatar...
Re: How to change the logo in Anomaly theme?
Group DevelopersGroup Documentation writersGroup Particularly helpful MoodlersGroup Testers

Hi Javier,

What I should have said is you need to delete the link which generates the Moodle logo and associated hyperlink, and add your own image and hyperlink like this...

<?php
echo $OUTPUT->login_info();
echo $OUTPUT->home_link();
?>

<div class="mylogo"><a href="http://your.organisation.com" title="site title" ><img src="<?php echo $OUTPUT->pix_url('mylogo', 'theme'); ?>" width="100px" height="20px" alt="Logo" /></a></div>

<? php
echo $OUTPUT->standard_footer_html();
?>

You can then add a style in core.css orwhatever css file you have in your theme.

#page-footer .mylogo { width: 100%; margin: 10px auto; padding: 0}

Hope this helps?

Mary

 
Average of ratings:Useful (1)
Picture of Maureen Pérez Álvarez
Re: How to change the logo in Anomaly theme?
 

Thanks!!

 
Average of ratings: -