Drupal Change Page Title Template

This module has been renamed or deprecated by another module in Drupal 8. Please visit this issue for more information. The title tag on the Blog module index page (found at /blog after the module is installed) is by default 'Blogs| Sitename', which isn't editable in the backend of Drupal. I've been talking to other Drupal developers and reading forums about the best way to go about changing the title of the blog index page. Drupal_set_title() and drupal_get_title() both are removed from drupal 8 but the best part is this there is a separate block for page_title. User can hide or add this block on any page/region. User can hide or add this block on any page/region. Check the template suggestions for Drupal 7. If you need to change the whole page template you have to use page--search.tpl.php or page--search--node.tpl.php respectively (if your path is /search/node). Because search-results.tpl.php is the default wrapper for search results inside page not for the page.

Active6 years ago

I need to change the title head of the pages in Drupal 7 by path. NOt to all content type. I need to change the title head to a specific page generated with views.

I am setting up a search page in Drupal 7 and when I click on Search something after entering a keyword, it just shows me an empty page.tpl.php. page. In other words, it just shows me the page.tpl.php template with no result in it.

It is actually surprising for me. The search page is not supposed to show page.tpl.php template but it is showing that template. I enabled Search module and search-result.tpl.php and search-results.tpl.php is in my theme folder; but still it is showing me page.tpl.php template. When I remove page.tpl.php however, it works perfectly. Any idea why this is happening? –

Is there a way to fix it? Why is it happening? How can I just create a search page template (like page--search--results.tpl.php) and it just reads that?

Drupal template changes

Many Thanks

Drupal Change Page Title Templates

Page.tpl.php

Steve
SteveStevePage
1,3016 gold badges37 silver badges77 bronze badges

1 Answer

Check the template suggestions for Drupal 7.

If you need to change the whole page template you have to use page--search.tpl.php or page--search--node.tpl.php respectively (if your path is /search/node). Because search-results.tpl.php is the default wrapper for search results inside page not for the page.

Edit after the submitted page.tpl.php code:

You are missing the <?php print render($page['content']); ?> in the page.tpl.php file! Please follow the Drupal Theming documentation guide.

TheodorosPloumisTheodorosPloumis
2,2761 gold badge13 silver badges26 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Title Page Template For Word

Not the answer you're looking for? Browse other questions tagged searchdrupal-7 or ask your own question.