SMF Support > SMF 2.0.x Support

Changing "Index" title

(1/5) > >>

MultiformeIngegno:
Hi! ;)
I'd like to change the <title></title> of the home page (that is "Name of the Forum - Index") and have something like "Name of the Forum - Main Page"...

What do I have to edit?
Thanks! :)

spearfish:
Forum --> Themes --> Default --> Languages --> Index.English.php


--- Code: ---# Line 48
$txt['forum_index'] = '%1$s - Index';

--- End code ---

MultiformeIngegno:
OK, and how to change it for topics?
I'd like to have "Topic name - name of the board"

N3RVE:
Please, Include details like Forum Version, etc.

For the Index Page, Try changing the code.

In this file:
./Themes/default/Index.template.php

Find:

--- Code: ---<meta name="description" content="', $context['page_title'], '" />

--- End code ---
Replace with:

--- Code: ---<meta name="description" content="Your Chosen Description" />

--- End code ---
Find:

--- Code: ---<title>', $context['page_title'], '</title>

--- End code ---
Replace with:

--- Code: ---<title>', ( $context['user']['is_logged'] ? $context['page_title'] : 'Your Title Here' ) , '</title>

--- End code ---

Change to desired text.
Thats the bit that will be shown to guests if they try to view any page.

-[n3rve]

MultiformeIngegno:

--- Quote from: [n3rve] on June 10, 2008, 01:48:31 PM ---Find:

--- Code: ---<title>', $context['page_title'], '</title>

--- End code ---
Replace with:

--- Code: ---<title>', ( $context['user']['is_logged'] ? $context['page_title'] : 'Your Title Here' ) , '</title>

--- End code ---

--- End quote ---
Mmmh... I didn't understand what this code do...

Anyway my forum version is 2.0 Beta 3

Navigation

[0] Message Index

[#] Next page

Go to full version