SMF Support > Install and Upgrade Help
How do I modify page title for index page?
ademanuele:
I am using a modified SMF template and want to be able to change the name of my index page. I notice that if I enter a Forum Title (Server Settings > General) then my page title becomes "forum name - Index" (which is what I want), however, the forum name also appears on the top of my web page, which I do not want. I have attached two screen shots showing the effect. If I leave the Forum Title field empty then the text does not appear, however the page title becomes "- Index". All I want is to have the page title show "forum name - Index"
Just for clarification, what I mean by page title is what appears within the <TITLE></TITLE>tags on a html page. I am not that familiar with css however happy to modify files with clear instructions....
emanuele:
I assume the one at the center of the page is an image (including the part "pharmweb discussion forum").
Maybe you could just style (using css) the title shown by SMF (on the left in 2nd image you posted) to match the style of the text in the image and remove the string from the image itself.
Colin:
Or less work would to be to go to and modify the following in index.template.php
--- Code: ---<title>', $context['page_title_html_safe'], '</title>';
--- End code ---
-> and just hard code the title
--- Code: ---<title>Forum Title Here</title>;
--- End code ---
ademanuele:
This does work, but makes every page have the Forum Title Page. Is there a simple way of just modifying the index page?
Colin:
I am confused now. You don't want every page to have the have a <title>?
Navigation
[0] Message Index
[#] Next page
Go to full version