View previous topic :: View next topic |
Author |
Message |
boštjan -
Joined: 03 Apr 2008 Posts: 23
|
Posted: Mon May 12, 2008 6:49 am Post subject: Meta tags in PH? |
|
|
Hello,
Well, this problem that I have has nothing to do with my Abyss X2, but PHP code on my site; but I hope that someone will help.
The thing is, that I used php with Smarty framework, included metatags, wrote robots.txt, verified with Google, but when I type the name of my site in search bar, Google does not find anything. Here is the index.tpl header code, please, take a look at it and help!
Have a nice day!
Boštjan
<?xml version="1.0" encoding="{lang mkey='ENCODING'}"?>
<!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">
{strip}
<head>
{if $title != '' }
<title>{$title} </title>
{elseif $config.site_title ne '' }
<title>{$config.site_title|stripslashes}</title>
{else}
<title>{lang mkey='title'}</title>
{/if}
<meta http-equiv="Content-Type" content="text/html; charset={lang mkey='ENCODING'}" />
<meta name="keywords" content="{$config.meta_keywords}" />
<meta name="description" content="{$config.meta_description}" />
<script type="text/javascript">
/* <![CDATA[ */
var loadingTag = "{lang mkey='loading'}";
var modeRewrite = "{$config.enable_mod_rewrite}";
var docRoot = "{$smarty.const.DOC_ROOT}";
var alphanumeric_chars = "{lang mkey='alphanumeric'}";
var alphanum_chars = "{lang mkey='alphanum'}";
var text_chars = "{lang mkey='text'}";
var full_chars = "{lang mkey='full_chars'}";
{if $config.use_popups == 'N'}
var use_popups = false;
{else}
var use_popups = true;
{/if}
{if $config.use_profilepopups == 'N'}
var use_profilepopups = false;
{else}
var use_profilepopups = true;
{/if}
/* ]]> */
</script>
<link href="{$css_path}default.css" rel="stylesheet" type="text/css" />
{$addtional_css} |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu May 15, 2008 4:40 pm Post subject: Re: Meta tags in PH? |
|
|
boštjan,
Things are more complex than that: adding META tags in your pages does not mean that Google will immediately index it. It may take months for its spider to do so. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
fiasco -
Joined: 12 Aug 2008 Posts: 8
|
Posted: Thu Sep 04, 2008 6:10 am Post subject: |
|
|
You can write whatever meta elements you like with php, just like you would write out any other HTML element(s). _________________ web design company
free templates |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Toasty -
Joined: 21 Feb 2008 Posts: 298 Location: Chicago, IL
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
herbalz -
Joined: 28 Oct 2008 Posts: 3
|
Posted: Tue Oct 28, 2008 7:33 pm Post subject: |
|
|
Hi all,
I'm using php navigation for my new site, with each page having a css layer with the php include function to bring in other pages when the links are clicked, in the format of: index.php?page=
But, I'm just wondering if I need meta tag keywords and descriptions on all the other pages of my site? _________________ Health Article Forum | Natural Herbal Remedy |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Oct 30, 2008 1:54 pm Post subject: |
|
|
herbalz wrote: |
But, I'm just wondering if I need meta tag keywords and descriptions on all the other pages of my site? |
They are not required and your PHP generated page will display fine. But adding them may make search engines happy and it may help navigation inside your pages using some browsers. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|