Be sure to pay attention to the following note if you want to disable this specific front page:
Optionally, specify a relative URL to display as the front page. Leave blank to display the default content feed.
In this blog, I briefly describe a procedure for creating a customized Drupal front page. It’s just a series of steps of what to do, not a detailed how-to.
- Get into the theme directory:
$Drupal7_Home/sites/all/themes/danland
, where “danland” is the theme name. - Copy and paste
page.tpl.php
into the same directory as it already is. - Rename the copied file to
page--front.tpl.php
. Notice that there are two dashes. - Change whatever you’d like to do for your customization in the
page--front.tpl.php
. For example, for a testing purpose, I change the phrase “Theme by” at the bottom of the page to “Developed by”. - Clear Drupal caches:
- Open a web browser and point the address to your Drupal homepage such as
http://localhost/drupal7
- Log into your Drupal homepage as administrator.
- Click on “Configuration”
- Then, under the “Development” section, click on “Performance”
- Finally, click on “Clear all caches”.
- Open a web browser and point the address to your Drupal homepage such as
- Refresh your Drupal homepage, the “Theme by” at the button of the homepage should be changed to “Developed by”.
Không có nhận xét nào:
Đăng nhận xét