在每篇 joomla 文章中添加不同的元标记
我想在我的 joomla 网站中添加 facebook open graph 标签。 我编辑了index.php并手动添加:
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description"
content="A group of U.S. Marines, under command of
a renegade general, take over Alcatraz and
threaten San Francisco Bay with biological
weapons."/>
</head>
这样元标记就应用于我的所有网站页面。
如何为每篇 joomla 文章添加不同的元标记?
I'd like to add facebook open graph tags in my joomla website.
I edited index.php and add manually:
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description"
content="A group of U.S. Marines, under command of
a renegade general, take over Alcatraz and
threaten San Francisco Bay with biological
weapons."/>
</head>
In this way meta tags is applied to all my website pages.
How can I add different meta tags for every joomla article?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这篇文章解释了拼接元标记的基本方法。
A basic method of stitching the meta tags is explained in this article.
如果您愿意,您可以使用 Joomla 标准内容的 Open Graph 插件之一。
也许就像 http://itprism.com/free- joomla-extensions/social-marketing-seo/open-graph-meta
You can use one of the Open Graph Plugins for Joomla standard content if you like.
Maybe like http://itprism.com/free-joomla-extensions/social-marketing-seo/open-graph-meta
您可以通过管理后端的导航菜单向每篇文章添加特定元。当查看特定的导航项时,每个父级和子级都有自己的元字段,可通过右侧的下拉菜单找到。
You can add specific meta to each article via the navigation menu in the administratio0n back end. Each parent and child has its own meta fields located via the dropdowns on the right hand side when viewing a particular navigation item.