Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: infoseeker - syyskuu 15, 2011, 11:00:18 IP

Otsikko: how to edit meta tags in index.templete.php
Kirjoitti: infoseeker - syyskuu 15, 2011, 11:00:18 IP
how can i edit meta tags in index.templete.php. The default meta tag script is:


<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>';


I want replace the above meta tags with below meta script.


<META NAME="description" CONTENT="here you can share anything about smart phones. you can download or upload applications and games for all mobile operating systems. share latest news about smart phones, learn tips and tricks.">
<META NAME="keywords" CONTENT="download, applications, games, java, symbian, android, maemo, meego, windows_phone, iphone, tips, tricks, motorola, nokia, samsung, sonyericsson, lg, htc, iphone, smartphonearenaapplications, games, java, symbian, android, maemo, meego, windows_phone, iphone, tips, tricks, motorola, nokia, samsung, sonyericsson, lg, htc, iphone, smartphonearena">
<META NAME="robot" CONTENT="index,follow">
<META NAME="author" CONTENT="tenny">
<META NAME="language" CONTENT="english">
<META NAME="revisit-after" CONTENT="1">


How can i replace the above meta meta script with default meta tags/script of index.temple.php without missing the page titles.
Otsikko: Re: how to edit meta tags in index.templete.php
Kirjoitti: mashby - syyskuu 15, 2011, 11:05:39 IP
My gut reaction is to say go ahead and just replace what you have with what you mentioned. With this exception:
<title>', $context['page_title_html_safe'], '</title>
<META NAME="description" CONTENT="here you can share anything about smart phones. you can download or upload applications and games for all mobile operating systems. share latest news about smart phones, learn tips and tricks.">
<META NAME="keywords" CONTENT="download, applications, games, java, symbian, android, maemo, meego, windows_phone, iphone, tips, tricks, motorola, nokia, samsung, sonyericsson, lg, htc, iphone, smartphonearenaapplications, games, java, symbian, android, maemo, meego, windows_phone, iphone, tips, tricks, motorola, nokia, samsung, sonyericsson, lg, htc, iphone, smartphonearena">
<META NAME="robot" CONTENT="index,follow">
<META NAME="author" CONTENT="tenny">
<META NAME="language" CONTENT="english">
<META NAME="revisit-after" CONTENT="1">
Otsikko: Re: how to edit meta tags in index.templete.php
Kirjoitti: infoseeker - syyskuu 16, 2011, 01:05:39 AP
Lainaus käyttäjältä: mashby - syyskuu 15, 2011, 11:05:39 IP
My gut reaction is to say go ahead and just replace what you have with what you mentioned. With this exception:
<title>', $context['page_title_html_safe'], '</title>
<META NAME="description" CONTENT="here you can share anything about smart phones. you can download or upload applications and games for all mobile operating systems. share latest news about smart phones, learn tips and tricks.">
<META NAME="keywords" CONTENT="download, applications, games, java, symbian, android, maemo, meego, windows_phone, iphone, tips, tricks, motorola, nokia, samsung, sonyericsson, lg, htc, iphone, smartphonearenaapplications, games, java, symbian, android, maemo, meego, windows_phone, iphone, tips, tricks, motorola, nokia, samsung, sonyericsson, lg, htc, iphone, smartphonearena">
<META NAME="robot" CONTENT="index,follow">
<META NAME="author" CONTENT="tenny">
<META NAME="language" CONTENT="english">
<META NAME="revisit-after" CONTENT="1">


Thanks a lot bro'
Now my problem solved.

GOD BLESS YOU