一个搜索引擎优化中的两个元标签

时间:2013-02-22 作者:Olive

我使用womanish theme
我安装了all-in-one seo包,但我在源代码中看到了关键字和描述的两个元标记,我在标题中找不到相关代码。php或top。php,我如何修复它?

我无法解决我的问题,是否会对seo造成不良影响?

1 个回复
SO网友:Jon Limitless

从我看到的主题来看,它不会出现在标题中。php。这将是相关的主题,因为它已经有一个搜索引擎优化功能内置。您需要完成这些功能。php和seek SEO并删除修改此行:

$default=\'global|slider|layout|seo|translations\';

$default=\'global|slider|layout|translations\';
这将删除要包含在选项中的设置。如果不起作用,请进入inc/settings。php并删除第368-402行,该行应如下所示:

\'seo\'=>array(
        \'name\'=>\'SEO\',
        \'content\'=>array(
            \'description\'=>array(
                \'type\'=>\'text\',\'name\'=>\'description\',\'value\'=>\'\',\'ttl\'=>\'Site description\'              
            ),
            \'keywords\'=>array(
                \'type\'=>\'text\',\'name\'=>\'keywords\',\'value\'=>\'\',\'ttl\'=>\'Site keywords\'                
            ),
            \'authormeta\'=>array(
                \'type\'=>\'text\',\'name\'=>\'authormeta\',\'value\'=>\'\',\'ttl\'=>\'Site Author Meta\'
            ),
            \'category\'=>array(
                \'type\'=>\'check\',\'name\'=>\'category\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in category archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a category page on your site\'
            ),
            \'tag\'=>array(
                \'type\'=>\'check\',\'name\'=>\'tag\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in tag archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a tag page on your site\'
            ),
            \'author\'=>array(
                \'type\'=>\'check\',\'name\'=>\'author\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in author archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a author page on your site\'
            ),
            \'search\'=>array(
                \'type\'=>\'check\',\'name\'=>\'search\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in search archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a search page on your site\'
            ),
            \'day\'=>array(
                \'type\'=>\'check\',\'name\'=>\'day\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in day archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a day archives page on your site\'
            ),
            \'month\'=>array(
                \'type\'=>\'check\',\'name\'=>\'month\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in month archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a month archives page on your site\'
            ),
            \'year\'=>array(
                \'type\'=>\'check\',\'name\'=>\'year\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in year archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a year archives page on your site\'
            )
        )
    ),
这些步骤将删除默认的主题SEO,从而消除重复元问题。希望这有帮助。

结束

相关推荐

一个搜索引擎优化中的两个元标签 - 小码农CODE - 行之有效找到问题解决它

一个搜索引擎优化中的两个元标签

时间:2013-02-22 作者:Olive

我使用womanish theme
我安装了all-in-one seo包,但我在源代码中看到了关键字和描述的两个元标记,我在标题中找不到相关代码。php或top。php,我如何修复它?

我无法解决我的问题,是否会对seo造成不良影响?

1 个回复
SO网友:Jon Limitless

从我看到的主题来看,它不会出现在标题中。php。这将是相关的主题,因为它已经有一个搜索引擎优化功能内置。您需要完成这些功能。php和seek SEO并删除修改此行:

$default=\'global|slider|layout|seo|translations\';

$default=\'global|slider|layout|translations\';
这将删除要包含在选项中的设置。如果不起作用,请进入inc/settings。php并删除第368-402行,该行应如下所示:

\'seo\'=>array(
        \'name\'=>\'SEO\',
        \'content\'=>array(
            \'description\'=>array(
                \'type\'=>\'text\',\'name\'=>\'description\',\'value\'=>\'\',\'ttl\'=>\'Site description\'              
            ),
            \'keywords\'=>array(
                \'type\'=>\'text\',\'name\'=>\'keywords\',\'value\'=>\'\',\'ttl\'=>\'Site keywords\'                
            ),
            \'authormeta\'=>array(
                \'type\'=>\'text\',\'name\'=>\'authormeta\',\'value\'=>\'\',\'ttl\'=>\'Site Author Meta\'
            ),
            \'category\'=>array(
                \'type\'=>\'check\',\'name\'=>\'category\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in category archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a category page on your site\'
            ),
            \'tag\'=>array(
                \'type\'=>\'check\',\'name\'=>\'tag\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in tag archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a tag page on your site\'
            ),
            \'author\'=>array(
                \'type\'=>\'check\',\'name\'=>\'author\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in author archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a author page on your site\'
            ),
            \'search\'=>array(
                \'type\'=>\'check\',\'name\'=>\'search\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in search archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a search page on your site\'
            ),
            \'day\'=>array(
                \'type\'=>\'check\',\'name\'=>\'day\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in day archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a day archives page on your site\'
            ),
            \'month\'=>array(
                \'type\'=>\'check\',\'name\'=>\'month\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in month archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a month archives page on your site\'
            ),
            \'year\'=>array(
                \'type\'=>\'check\',\'name\'=>\'year\',\'value\'=>\'0\',\'ttl\'=>\'‹noindex› in year archives\', \'hint\'=>\'Turn on to prevent all robots from indexing a year archives page on your site\'
            )
        )
    ),
这些步骤将删除默认的主题SEO,从而消除重复元问题。希望这有帮助。

相关推荐