By fender-dupe on
I have changed this one line in the theme page.tpl.php
print $title from print $head_title
because the site name was repeated on every page, not only page title shows but the front page is missing the page title.
This did not happen in Drupal 6, how do other people handle this issue, it is not recommeded that site name appears in every page head page title
Thank you
Comments
If you don't want you site
If you don't want you site name to appear at all try this
admin/build/themes/settings and uncheck the site name option.
Secondly if you want it to appear on front-page and not on any other page then try one of this
1)write a php snippet in page.tpl.php which will check for the front page and then print the sitename.
2)make a page-front.tpl.php file same as default page.tpl.php and in page.tpl.php remove the code which renders the site name. In case of garland the variable name is $site_name (which i think will same for every theme)
Chetan
http://www.cjain.com
i tried with theme and
i tried with theme and disabled site name, no change at all
snipet would probably work, but i cant write it
why isnt this fixed by default in Drupal?
Its not a generic problem
Its not a generic problem with Drupal. You might be missing something. Ok check this list again
1) you disable the sitename in admin/build/themes/settings/ . Disabling over here will not guarantee 100% that sitename is removed. This is global setting. If the sitename is enabled for particular theme also then it will show up.
2) To disable it completely you have to remove it from your current (live) theme settings also...so for example if its garland your link will be
admin/build/themes/settings/garland
uncheck the sitename here also and see if it works for you
Chetan
http://www.cjain.com
i was not talking about site
i was not talking about site name in the theme, i was talking about site name in head page title
but i fixed it with page title module for drupal 6
thank you for help