Meta Tags Not Working

Hi

I am new to SilverStripe and have inherited a company website built on the platform. I am trying to fix up some of the pages for SEO/SEM and am running in to issues with the Metadata field at the bottom of page creation.

The Meta Description field works (content here shows in the HTML code when inspecting the live page) however nothing I put in Custom Meta Tags will display in the HTML code. Example of code I am using is below:

<meta name="keywords" content="keyword1 etc">

Any advice/tips or things I may have overlooked as to why content in this field would not populate to a live page?

Hi @bmcnulty,
What version of SilverStripe are you using?

Assuming you are using SilverStripe 4 (I have not used 3 before)
The custom meta tags should appear if you have $MetaTags in your template file (page.ss).

Page.ss

<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
    <% base_tag %>
	$MetaTags

...

Alternatively, if you would prefer not to use the CMS generated meta tags but still use the custom tags from within the admin section, you can also use $ExtraMeta, in you template file, .

Page.ss

<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
    <% base_tag %>
	<meta http-equiv="Content-type"   content="text/html; charset=utf-8" />
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title><% if $URLSegment != 'home' %>$Title - <% end_if %>$SiteConfig.Title</title>
	$ExtraMeta

...

If you haven’t already done so, the lessons provide a lot of information https://www.silverstripe.org/learn/lessons/v4/
https://www.silverstripe.org/learn/lessons/v3/