我有一个自定义的内容类型"Community“,来自这个内容类型的页面被选择为drupal 7站点的头版(来自系统/站点信息)。我在使用Metatag模块。所有其他页面都显示了元标记,但头版没有显示。
我也尝试过重写admin/config/search/metatags/config/global:frontpage/edit中的元标记,但仍然没有出现。
发布于 2016-08-05 10:46:08
如果您正在使用page--front.tpl.php,请添加下面的一行并清除缓存。
<?php print render($page['content']['metatags']); ?>
元标签将添加到首页。
https://drupal.stackexchange.com/questions/210533
复制相似问题