How to deactivate metatag generation

From Kunena

Jump to: navigation, search

Some people need to deactive the metatag generation for generating specific metatag for keywords and description. The metatags are generated into the template by few lines, so it's easy to deactive the metatag generation, but this manipulation works only with the Kunena 1.5.x series. This is a little bit different for Kunena 1.0.x series.

If you use the template default_ex, open the file components/com_kunena/template/default_ex/view.php and search this code (In Kunena 1.5.4 this are the lines 240 and 241):

$document->setMetadata( 'keywords', $metaKeys );
$document->setDescription($metaDesc); 


and comment them, that they look so:

//	$document->setMetadata( 'keywords', $metaKeys );
//	$document->setDescription($metaDesc);


It's the only thing to do. If you are using the template default, it's the same thing but in the file components/com_kunena/template/default/view.php but for lines 431 et 432.

Personal tools