| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
cesare2008
Joined: 11 Sep 2008 Posts: 14
|
Posted: Mon Oct 20, 2008 3:10 pm Post subject: [META] meta-description: add custom prefix |
|
|
i've given it a try. the mod works fine so far (except that on phpbb3 it doesn't use the search_ignore_words list...). at least i haven't double meta-tags anymore.
1) can i add some custom prefix, i.e. "XY FORUM: " in front of every meta-description? would you recommend that (readability)? how would i do that?
P.S: does google penalize (seo-wise) forums with double meta-tags so heavily? do you know?
cheers,
cesare |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
Posted: Sun Oct 26, 2008 10:44 am Post subject: Re: [META] meta-description: add custom prefix |
|
|
Well, adding few repeated content in the meta tags should not hurt if you do not add to many and unrelated content.
This mean that doing so, you should only add few and general content.
The difference would mostly be cosmetic given the importance of meta tags nowadays, but here is how to do it, in includes/function.php find :
| Code: | $this->meta['meta_desc'] = ( !empty($this->meta['meta_desc']) ) ? $this->meta['meta_desc'] : $this->meta_filter_txt($page_title . ' : ' . $this->meta['meta_desc_def']);
$this->meta['keywords'] = ( !empty($this->meta['keywords']) ) ? $this->meta['keywords'] : $this->make_keywords( $page_title . ' ' . $this->meta['meta_keywords_def']); |
and replace it with :
| Code: | $extra_desc = "my extra description that will be added to the regular ones";
$extra_keywords = "coma,separated,list,of,addtional,keywords";
$this->meta['meta_desc'] = ( !empty($this->meta['meta_desc']) ) ? $this->meta['meta_desc'] . " $extra_desc" : $this->meta_filter_txt($page_title . ' : ' . $this->meta['meta_desc_def']);
$this->meta['keywords'] = ( !empty($this->meta['keywords']) ) ? $this->meta['keywords'] . ",$extra_keywords" : $this->make_keywords( $page_title . ' ' . $this->meta['meta_keywords_def']); |
Just make sure you only add few words in $extra_desc and $extra_keywords
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
cesare2008
Joined: 11 Sep 2008 Posts: 14
|
Posted: Mon Oct 27, 2008 7:27 am Post subject: Re: [META] meta-description: add custom prefix |
|
|
thanks a lot for your valuable input.
cheers,
cesare |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |