Elxis CMS Forum
Support => General => Topic started by: ipghmagnet on September 25, 2014, 06:22:26
-
I recently found below meta tags. I am wondering if the elxis should also include below meta?
<meta property="twitter:account_id" content="15651700" />
<meta property="fb:page_id" content="8489236245" />
<meta name="twitter:site" content="@Moz">
<meta property="og:image" content="https://dc8hdnsmzapvm.cloudfront.net/assets/images/beginners/landingpage_header.png?503145d3b3381c230ede7e5574256bf5" />
<meta property="twitter:title" content="SEO: The Free Beginner's Guide from Moz" />
<meta property="og:title" content="SEO: The Free Beginner's Guide from Moz" />
<meta property="og:description" content="New to SEO? Need to polish up your knowledge? The Beginner's Guide to SEO has been read over 1 million times and provides the information you need to get on the road to professional quality SEO." />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://moz.com/beginners-guide-to-seo" />
<meta property="og:site_name" content="Moz" />
<meta property="fb:admins" content="22408537" />
<meta property="twitter:card" content="summary_large_image" />
-
You can modify component content (controllers article and category) and add any meta data you like.
Example to set META name/content pairs using setMetaTag method:
$eDoc->setMetaTag('description', 'some description');
The above will generate this:
<meta name="description" content="some description" />
To set any head data, custom like the ones you wrote use method addCustom.
Example:
$eDoc->addCustom('<meta property="og:site_name" content="Moz" />');
If some of these meta data exist in all pages and are the same you can add them once on your template's index.php file.
For example for template Flex:
...
$eDoc->setMetaTag('viewport', 'width=device-width, initial-scale=1.0');
$eDoc->addLink($touch_icon, '', 'apple-touch-icon');
...
$eDoc->addCustom('<meta property="og:site_name" content="Moz" />');
$eDoc->addCustom('<meta property="fb:admins" content="22408537" />');
$eDoc->addCustom('<meta property="twitter:card" content="summary_large_image" />');