How to change the footer text.?

Hi,

I want to modify the footer ("Powered by Ellg) with copyrights and credits.

 

How can I make it? I tried to modify directly in the footer.php but nothing works..

I am using Elgg 2.1 and Aalborg Theme

Thanks a lot

  •  
    Hello, there is a plugin site pages extended cordially
     
  • @Annivzinal If your goal is editing 'Powered by Elgg' menu item on your own custom text and link then you can try this plugin.

  • If you just want to change the footer link text (and the url it points to), you can use the plugin @RvR linked to.

    If you would want to customize the footer some more, it would be best to create a little plugin for that on your own or extend some other already existing "customization" plugin you already use with the necessary changes.

    The footer link "Powered by Elgg" (and also the links to the external pages) are actually menu items of the "footer" menu. These entries are registered by Elgg core and the external_pages plugin but can be unregistered again quite simply if you add the necessary code in your "customization plugin". With the line

    elgg_register_menu_item('footer', 'powered');

    added in the init function of your plugin the "Powered by Elgg" link would be gone. If you want to make further adjustments to the footer layout or content you would have to override the core view vendor/elgg/elgg/views/default/page/elements/footer.php. You would start with copying this file to your plugin and place the copy in mod/my_plugin/views/default/page/elements/footer.php. Then you could change it for example to

    <?php
    echo elgg_view_menu('footer', ['sort_by' => 'priority', 'class' => 'elgg-menu-hz']);
    
    echo elgg_format_element('div', ['class' => 'clearfloat elgg-menu-footer-default'], elgg_echo('my_plugin:copyright_text'));

    and add the text you would want to be displayed as copyright info in the language file of your plugin as the language string

    'my_plugin:copyright_text' => "(c) bla bla",

    Of course further customizations would be possible to be made to footer.php if required.