Categories

Featured templates

Drupal 7.x. How to remove or change “Welcome to…” title

Ammy Brown July 14, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

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.

  1. Connect to your server using FTP or hosting Cpanel.

  2. Navigate to modules folder in your Drupal root installation.

  3. Copy node folder from the modules directory to sites/all/modules folder on your server.

  4. Open the file called node.module in text editor.

  5. 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 = '<p>' . t('No front page content has been created yet.') . '</p>';
    
    $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));
    }
  6. 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);
  7. Save file, upload it to your server. Refresh your site to see the changes.

Feel free to check the detailed video tutorial below:

Drupal 7.x. How to remove or change “Welcome to…” title

Adaptive Themes Drupal
This entry was posted in Drupal Tutorials and tagged drupal, remove, text, welcome. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket