Customizing SMF > SMF Coding Discussion
Is This The Right Place to Change the Meta Title?
GCMain:
I found in this code for SMF 2.0.2 in the Box that starts with Line 77:
--- Code: ---<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'], '</title>';
--- End code ---
Is this where I change the Meta Title?
If so, what area specifically for example if I wanted to change the meta title to something like: The Home of Free Classifieds
Thank you.
Arantor:
If you really wanted to set meta keywords you can do it from the admin panel. Just use the search on the front page of the admin panel and search for 'meta'.
That said, it's only keywords for the entire forum, you can't set per-page or per-area keywords, but since most search engines don't care about such things, and even if they did, the whole notion of setting keywords per topic is a bit ridiculous (unless you're going to go back and change it for every single topic on your forum), and you're almost certainly wasting your time.
GCMain:
Thanks for the good advice. The keywords I'm pretty comfortable with.
It's the MetaTitle (main) that I'm wanting to modify.
Arantor:
There's no such thing as 'meta title'. If you mean the *main* page title, it's generated dynamically as necessary in all the different pages.
Instead of asking whether this is the place to change, how about explaining what you're trying to do and I'll tell you the best way to do it in SMF's codebase.
GCMain:
Okay thanks.
If you look at this link: http://www.challengertalk.com/forums/f38/added-srt8-spoiler-w-sxt6-badge-80167/index2.html [nofollow]
it gives the name of the Topic in the Title and then has an extension on the Page Title that says "Dodge Challenger Forum: Challenger and SRT8 Forums"
Understanding of course that this isn't an SMF Board, it's what I'm trying to accomplish. Having each Topic's Name page title be followed by a generic description of the forum that is search-engine friendly.
Thank you again for your help.
Navigation
[0] Message Index
[#] Next page
Go to full version