How to change footer Powered by Drupal and its lin

2020-07-02 11:24发布

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.

4条回答
2楼-- · 2020-07-02 11:48

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.

查看更多
看我几分像从前
3楼-- · 2020-07-02 11:56

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楼-- · 2020-07-02 12:05

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.

查看更多
爷的心禁止访问
5楼-- · 2020-07-02 12:06

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.

查看更多
登录 后发表回答