SMF Support > SMF 1.1.x Support
Duplicate title tags
studentforums:
I think I am being penalized by the search engines because of 200 or so duplicate title tags. How do I modify the title tag so it displays the topic and page number? Am using SMF 1.1.6
JimM:
Take a look at this mod and see if it will do what you want.
Show Local Url Titles
That should work for the topic and you can ask in the support topic for the mod, if there is an option to add the page number.
studentforums:
That wont work. Have just upgraded to smf 1.1.10 I still have about 40 or so title tags am am now moving rapidly up for my chosen search terms.
JimM:
Great, if this issue is resolved, please mark it solved by clicking the link at the bottom left and it would definitely benefit the community if you could provide some information on how you fixed the issue. :)
studentforums:
I think the problem was that I changed the orgininal code to put in the title I wanted. At that time I didn't know that much about SEO and was frankly doing as much wrong as right. However, here is the code I now have, in themes/default/index.template.php
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="Student Forum for GCSE, IGCSE, O - Level, A - Level, IB and University Students ', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="Student forum, O - Level Student forum, GCSE Student forum, IGCSE Student forum, IB Student Forum, A - Level Student Forum, University Student Forum, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>IGCSE/GCSE/O & A Level/IB/University student forum ', $context['page_title'], '</title>';
My forum is now on the front page of every search engine, I think, though google is the only one I care about, for
igcse student forum
A level student forum
gcse student forum
IB student forum
university student forum
For student forum we are 5th in bing and 36th in google,co.uk but a month ago we were 150th
Navigation
[0] Message Index
[#] Next page
Go to full version