- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Drupal 7.x. How to edit footer copyright
April 13, 2014
This tutorial shows how to edit the footer copyright info in Drupal 7.x templates.
Drupal 7.x. How to edit footer copyright
-
You can see the footer copyright below.
-
In order to change it, you should go to Structure -> Blocks, locate the Footer region and edit the Footer-text block (the block name may vary).
-
We should modify the following code in order to change the footer text:
<?php $site_name = variable_get('site_name', 'Drupal'); print $site_name; ?>
<?php $site_name?> displays Drupal site name, © is the copyright symbol, <?php echo date(‘Y’) ?> is the function showing the year. You can also see the Privacy policy link in there.
-
We have changed the Privacy policy link and the privacy policy text. We have also removed the date. Please note that you can remove this PHP code and use HTML instead. Save the changes. The modified code looks like the one on the screenshot below.
-
Save the changes and check your site.
Feel free to check the detailed video tutorial below: