In this article I will explain you how to replace the default site title for an image. Due to recent changes in the structure of Elgg 1.8, previous guides that show how to replace the title with an image won’t work anymore. Sign into your cPanel as an admin and follow theses steps:
1. First, we choose an image file, it can be a jpg, png or gif. For this purpose of this guide I will be using a png image file called image_logo.png
2. After choosing an image, copy it to YourElggFolder/_graphics
3. Then, go to YourElggFolder/views/default/page/elements . Once you are inside that folder, open the file called header_logo.php and look for this line of code:
4. Now, replace that line with this one:
<a href=”<?php echo $site_url; ?>”><imgsrc=”<?php echo $site_url; ?>_graphics/image_logo.png”/></a>
5. Save your changes. After that, run upgrade.php (www.yourelggdomain.com/upgrade.php). Login to your elgg site and you should be able to see your custom logo now:
This now concludes How to Replace the Default Elgg 1.8 Title With an Image.
Looking for quality Elgg Hosting? Look no further than Arvixe Web Hosting!
Happy Hosting!
Rodolfo Hernandez
Hello, please help, this does not work for me, i don’t know why i have done everything fine i am really struggling with this, i would like to show both a logo and site title, but currently can’t get a logo to show, i have checked paths and filenames and everything.
Hi!
What version of elgg are you using? Probably the quotes. Instead of straight copy and paste, please rewrite the double quotes. Sometimes that happens.
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
1.8
Hello, no worries all sorted, did this http://elgghacks.com/edit-elgg-header/
A very nice php trick to edit this one , I was looking for this one and finally got it.
Thanks.
You’re welcome!
Hi im using ver. 1.8. i would like to show both a logo and site title, but I can’t get a logo to show.
I have checked paths and filenames. I rewrote quotes as you suggest and my code looks like this…..
<a class="elgg-heading-site" href="”>
<a href="”><imgsrc="_graphics/image_logo.png”/>
Doesn’t work. I dropped the code both above and below also and all it did was cancel out the title and still no logo.
Guess i’ll just change the theme since there’s no way to drop the logo in with the title
It is due to the bad source formatting. Look at the img src, the path is wrong.