Search code examples
htmlmoodlemoodle-api

Problem with logo in a footer of Moodle website


I replaced Moodle logo with a logo of my web place keeping the same file name and file size and the new logo shows up when I run my website in Firefox or Edge, but the logo doesn't show up in Chrome, Brave and maybe other web browsers. What I did:

  • I put my logo in this file: /pix/moodlelogo_grayhat.png
  • I changed logo link in: /lib/outputrenderers.php If someone wants to take a look, this is my website.

Thank you in advance!


Solution

  • Your theme's markup doesn't contain the filename extension. For some reason (either server configuration or file problems) the browser thinks that the image is an SVG file.

    enter image description here

    The best solution may be to modify the theme to add .png to the markup. If the filename is dynamically injected via template code you may just need to rename the file with the extension present.