Some developers build my website without adding meta tags. Now They are asking money to insert the meta tags. But I think I can do it with a little help.
I try to open the index.php and I don't find anything related to the title, keywords and description.
But, in config.php, I have the following:
//SITE CONSTANTS
define("TITLE" , "Dogs for Sale | Puppies for Sale");
define("ROWSPERPAGE" , "10");
//DIRECTORY PATHS
define("PROFILE_IMG_DIR", "uploads/");
.....
In index.php (the home page)
<?php session_start();
include('includeconfig.php');
include("includes/classes/pagination_c…
$id=$_GET['id'];
/**
* Display NEWS
**/
$objDB->Table = 'pets_articles';
$objDB->Fields = array('pets_articles.news_id','pets_arti…
$objDB->Condition = "pets_articles.news_status='1'";
try{
....
Would you please help me to add the meta tags to my website?
Thanks
Meta tags (keywords and description)?
Started by dasseya1, Jun 06 2010 07:54 AM
1 reply to this topic
#1
Posted 06 June 2010 - 07:54 AM
|
|
|
#2
Posted 06 June 2010 - 09:44 PM
What you need to be looking for doesn't actually lie in the PHP, but in fact in the HTML. I can't really say where by what code you've posted but the HTML is going to be stored in either in a flat file or in a database the HTML is stored. You need to find whatever template is used for the header of your pages: doctype declaration, <html> tag, etc. Once there, in between the <head> and </head> tags you can use the following code:
<meta name="description" content="Insert your description here" /> <meta name="keywords" content="keywords separated by commas" />


Sign In
Create Account

Back to top









