How can I remove "elgg" logo from up left corner on top bar? Knows somebody?
Respect!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Yeah... I will release a plugin for it.
Hi. I am back. I changed my mind LOLZ. Take a look at this...
http://phloor.13net.at/phloor_plugin/view/251/logo-manager-for-18
Just add this line to start.php in the plugin where you keep your customizations.
elgg_unregister_menu_item('topbar', 'elgg_logo');
Thank you!
Done!
Respect!
I changenged the \engine\lib\elgglib.php
// $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',
// ));
I think the suggestion from gillie is much better.
@ivanoman : donot make your modifications by editing the elgg core. It will break your site functionality when you upgrade
Thanks for your suggestion.
I'm trying to understand how to develop a plugin.
I saw there is already somethinf that do it but just to remove a picture I was not convince to intall a phloor framework plus andother one.
Like Webgalli says, never change core files. Make your own plugin.
Read this thread about how to do it, http://community.elgg.org/pg/forum/topic/850778/change-the-color-from-header-and-topbar/
Would it be wrong to replace elgg_toolbar_logo.gif and favicon.ico in the _graphics folder to
something else of the same size with the same names.
You should add a new logo and favicon to the graphics folder in your own plugin. And then use something like below. Read the thread mentioned abowe and you'll find solutions to both changes.
elgg_unregister_menu_item('topbar', 'elgg_logo');
$logo_url = elgg_get_site_url() . "mod/myplugin/graphics/topbar_logo.png";
elgg_register_menu_item('topbar', array(
'name' => 'my_logo',
'href' => 'http://www.mysite.com/',
'text' => "<img src=\"$logo_url\" alt=\"My logo\" width=\"38\" height=\"20\" />",
'priority' => 1,
'link_class' => 'elgg-topbar-logo',
));
- Previous
- 1
- 2
- Next
You must log in to post replies.