开发者

Meta descriptions of frontpage items not working in joomla 1.5

When I view the page source the meta tags are fine, however when I try to share the website link (the problem is only with frontpage item) on Facebook, the preview points to "Joomla! ..." text.

I have also changed

  1. Changed the global config file (that only ensures all other pages work fine except the frontpage item)

  2. hardcoding the MetaDesc tag in *.php files.

Maybe I'm missing something very b开发者_运维技巧asic?


Have you tried removing the Generator meta tag from Joomla? The only meta data tag I know of that starts Joomla! is the generator tag. In Joomla 1.6 onwards you can remove this by adding a line to your template. In 1.5 however you have to edit the following file.

\libraries\joomla\document\html\renderer ~ line 84

As mentioned earlier, the Google problem should be solved by waiting for a while. Facebook seems to need custom meta tags in order to work properly. There is a thread about it here. Also worthwhile checking out facebook developers section.


Your home website not show metadescription and keyword although you config it in Global Configuration .

Menu manager -->Home is Front Page Blog view.Try insert metadesc and keyword in file

I try using get values from configuration.php.But it not working with 2 parameter MetaDesc, MetaKeys.

Edit file yourwebsite\components\com_content\views\frontpage\view.html.php

$config = & JFactory::getConfig();

$document->setDescription($config->getValue( 'config.MetaDesc'));

Sumary I fix my problem like that, Edit file yourwebsite\components\com_content\views\frontpage\view.html.php

$document->setMetadata(“keyword abc here”);

$document->setDescription( "Description about your website" );

Hope this help someone have some problem's.My name is vanhien771354

www.nhipcau.us

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜