Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Custom Meta Tags : Closing tag gets stripped


Go to End


2 Posts   2911 Views

Avatar
fireincairo

Community Member, 4 Posts

27 January 2015 at 3:02pm

On Silverstripe 3.1, I have a theme with a DOCTYPE set to XHTML 1.0 Strict

As I wanted to use Google Webmaster Tools on my website, I had to add a meta tag "google-site-verification" on my home page, so I decided to add it in the Custom Meta Tags field of my home page.

However, when I save my document, the "/" of my closing tag gets stripped from :
<meta name="google-site-verification" content="..." />

to :
<meta name="google-site-verification" content="..." >

which causes my browser not being able to open my website anymore, as my home page is not XHTML valid now. Same thing when I try with an opening and a closing tag (<meta name="google-site-verification" content="..." ></meta>), my closing tag gets stripped and I end up with only the opening tag (<meta name="google-site-verification" content="..." >).

Has anyone ever run into this issue ? Is there a way to go around ? I guess I could include this tag in my theme's Page.ss template, but I really only need this meta tag for my home page.

Avatar
MischaK

Community Member, 1 Post

30 January 2016 at 2:48am

Edited: 30/01/2016 2:58am

Having the same issue. (SS: 3.2.1)