Dynamic Meta Tags - How to hard code JUST Index page ??

Support for the phpBB2 SEO mods released in the phpBB2 SEO Toolikt forum.

Moderator: Moderators

Dynamic Meta Tags - How to hard code JUST Index page ??

Postby microtekblue » Wed Apr 15, 2009 6:45 am

Hello,

How can we hard code just the index page, because our index page gets most of the traffic, but now the desc text shows rambling and nothing coherent, which is not good for seo. Its good for inner pages but not good for the home index page.

Please advise.

Thanks.
microtekblue
 
Posts: 42
Joined: Mon Jul 28, 2008 4:20 pm

Advertisement

Re: Dynamic Meta Tags - How to hard code JUST Index page ??

Postby dcz » Wed Apr 15, 2009 1:44 pm

In index.php, you have :
Code: Select all
   $phpbb_seo->seo_meta['meta_desc'] = $phpbb_seo->meta_filter_txt("$page_title : " . $phpbb_seo->seo_meta['meta_desc_def']);
   $phpbb_seo->seo_meta['keywords'] = $phpbb_seo->make_keywords($phpbb_seo->seo_meta['meta_desc']);

You can replace it with :
Code: Select all
   $phpbb_seo->seo_meta['meta_desc'] = $phpbb_seo->meta_filter_txt("the description you want");
   $phpbb_seo->seo_meta['keywords'] = $phpbb_seo->make_keywords("the keywords you want separated by spaces");


;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: Dynamic Meta Tags - How to hard code JUST Index page ??

Postby microtekblue » Wed Apr 15, 2009 10:48 pm

Oh great thanks!

Also, how do we get rid of the default site title that shows for the description tag?

Our site title is very long, and so we need it to not show in the description tag. We need something shorter in there. How can we change that?

Thanks
microtekblue
 
Posts: 42
Joined: Mon Jul 28, 2008 4:20 pm

Re: Dynamic Meta Tags - How to hard code JUST Index page ??

Postby dcz » Sun Apr 19, 2009 11:44 am

For this, you will need to delete :
Code: Select all
$board_config['sitename']

Each time you found it after :
Code: Select all
$phpbb_seo->seo_meta['meta_desc'] = $phpbb_seo->meta_filter_txt(


In viewtopic.php and viewforum.php (once per file).

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests