On a previous post I wrote a guide on how to replace the title of your site with an image. However, due to recent changes in Elgg, that code was no longer working. In this guide, I will give you a step by step guide on how to safely replace the default Elgg title with an image for newer versions.
1. First, we choose an image file.
2. After choosing an image, copy it to YourElggFolder/_graphics
3. Go to YourElggFolder/views/default/page_elements/ Open the file header_contents.php and look for this line of code:
4. Replace that line with this code:
<h1>
<a href=”<?php echo $vars[‘url’]; ?>”><img src=”<?php echo $vars[‘url’]; ?>_graphics/logo.jpg” width=”270″ height=”105″ /></a>
</h1>
This now concludes how to replace default Elgg Title with an image
Looking for quality Elgg Hosting? Check out Arvixe Web Hosting.
Happy Hosting!
Rodolfo Hernandez
Thank very much, but how can i add adsense behind the title
Thanks for the change but I would like like to change the URL or remove it for the ELGG icon in the left corner… it sends it to an ELGG page… I would like it to go back to the root site… is there a way to change the URL varible for the ELGG logo?
Hello @Everest and @Cheyennemtnman I will write blog post addressing those specific issues.