SMF Support > Install and Upgrade Help

How do I modify page title for index page?

<< < (2/2)

emanuele:
With your code Colin each and every page will have always the same title.
He wants to have SMF's usual title, but without have to set the title.

I still think you should style SMF's own title instead of use an image.

ademanuele:
With the original code every page has a unique title with the name of the discussion forum or posting, and th home page is names "- Index". Hardcoding the title gives every page the same name....

Colin:
Ah ok. I see what you are getting at. Please revert the previous edits and then let's remove simply remove the forum title link from the template.


Find


--- Code: ---<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';

--- End code ---

Replace


--- Code: ---<h1 class="forumtitle">
</h1>';

--- End code ---

Once you have done this add your title back in the admin area.

ademanuele:
Thanks Colin, resolved....

Navigation

[0] Message Index

[*] Previous page

Go to full version