How to change footer Powered by Drupal and its link?

最后都变了- 提交于 2019-12-05 13:47:05

问题


I am working on Drupal. I want to know how to change that footer text Powered by Drupal and link given to it. I want there "Copyrights 2012 (My site name).All Rights reserved." I can not getting it can any one help me.


回答1:


Just go to Structure -> blocks -> Add block

Leave block title blank block description Custom Footer or any other if you want

and in Block body add following code

Copyrights &copy; <a href="http://localhost/drupal-7.12/">TopTableToastMaster</a>.All right reserved.

After doing this set default footer's region as none and add your custom footer.

Hope this will solve your problem.




回答2:


Just create your own block with your own text and replace the drupal one with your own.

To do that, go to the block adminstration area. Click on Add block. Add your HTML with your link. Then put your block in your footer area.




回答3:


go to Structure then goto blocks then Add block

Give the block title blank block description Footer or any other

and in Block body add code

Copyrights © Your site name.All right reserved.




回答4:


This is a themable item, so you can add this to template.php:

function MYTHEME_system_powered_by() {
  return '<span>' . t('XYZ Powered by <a href="@poweredby">Drupal</a>', array('@poweredby' => 'https://www.drupal.org')) . '</span>';
}

Don't forget to rebuild the cache to see the change take effect.



来源:https://stackoverflow.com/questions/9998160/how-to-change-footer-powered-by-drupal-and-its-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!