- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Drupal 7.x. How to remove or change “Welcome to…” title
July 14, 2015
This tutorial is going to show you how to remove “Welcome to…” title from the browser tab in Drupal.
Drupal 7.x. How to remove or change “Welcome to…” title
By default, Drupal templates have “Welcome to…” text displaying in the browser tab. We will show you how to remove this text from the browser tab.
-
Connect to your server using FTP or hosting Cpanel.
-
Navigate to modules folder in your Drupal root installation.
-
Copy node folder from the modules directory to sites/all/modules folder on your server.
-
Open the file called node.module in text editor.
-
Locate lines 2710-2729:
// 'rss.xml' is a path, not a file, registered in node_menu() drupal_add_feed('rss.xml', variable_get('site_name', 'Drupal') . ' ' . t('RSS')); $build['pager'] = array( '#theme' => 'pager', '#weight' => 5, ); drupal_set_title(''); } else { drupal_set_title(t('Welcome to @site-name', array('@site-name' => variable_get('site_name', 'Drupal'))), PASS_THROUGH); $default_message = '
' . t('No front page content has been created yet.') . '
'; $default_links = array(); if (_node_add_access()) { $default_links[] = l(t('Add new content'), 'node/add'); } if (!empty($default_links)) { $default_message .= theme('item_list', array('items' => $default_links)); } -
Remove/change Welcome to from the following line:
drupal_set_title(t('Welcome to @site-name', array('@site-name' => variable_get('site_name', 'Drupal'))), PASS_THROUGH);
-
Save file, upload it to your server. Refresh your site to see the changes.
Feel free to check the detailed video tutorial below: