Stuck for Three Days

Hi there, can anyone give me the file address where this is found: 

<li class="elgg-menu-item-elgg-logo">

<a href="http://www.elgg.org/" class="elgg-topbar-logo">

<img src="http://localhost/sites/elgg-1.8.13/_graphics/elgg_toolbar_logo.gif" alt="Elgg logo"          width="38" height="20">

</a>

</li>

  • cim pointed to the correct way to do it, there are several plugins that will change the logo, make the logo disappear, change the topbar colors, etc.....

    but to make a point, i just did a quick google search and first link that popped up was an elgg link and guess what code it had in it.

    it located in the engine/lib/elgglib.php

  • starting at line 2187:

    $logo_url = elgg_get_site_url() . "_graphics/elgg_toolbar_logo.gif";
    elgg_register_menu_item('topbar', array(
    'name' => 'elgg_logo',
    'href' => 'http://www.elgg.org/',
    'text' => "<img src=\"$logo_url\" alt=\"Elgg logo\" width=\"38\" height=\"20\" />",
    'priority' => 1,
    'link_class' => 'elgg-topbar-logo',
    ));

  • Thanks $('Cim'). I will try that. 

  • but do not edit the core files, it will cause you headaches in the future.  as i said there are several plugins to achieve what you want.  One i would personally recommend is from a user name speedysnail i think.  it makes the topbar sticky so it always appears on the top of your page regardless of where you scroll.  you could easily add the code above mentioned by cim in the topbar.php

  • In which file is it Costakisc? Thank you all guys for the help. I will try both of them. 

  • Thank you Costakisc. You're right it is in the engine folder. I will try to use a plugin to modify that, but in the meantime, I will change the engine folder. When I want to upgrade I will put back the original words at line 2187 to prevent problems:). Keep up the good work. 

    Asmarino

  • changing the code in the core is a big no no and it is bad practice, in the future you will need to make changes to your elgg site using a theme or plugin. one way to learn plugin developing is to see how the core plugins work and their views.

  • You are right $('Cim). I will buy the book by Cash and start learing how to make plugins. You and Costakisc are good guys. Respect. 

  • you're welcome. buying the book is a great idea. also elgg docs online are a good start while you're waiting for the book.

    http://docs.elgg.org/wiki/Plugin_development