Adding the "msvalidate.01" tag required by bing to Orchard

In order to validate my ownership for Bing Webmaster Tools, I need to add the tag

<meta name="msvalidate.01" content="CA6A83218C1ED72C9E6EF7298BA5549D" />

to the markup for my homepage.

After a bit of searching around, I found out that one way I could achieve this (I'm sure there are more!) was by:

  1. Going to the folder Orchard is installed in and navigating down through Themes > "Folder for current theme" > Views
  2. Opening the file "Layout.cshtml"
  3. Adding in the snippet of code below
@using (Script.Head())
{ 
   
<meta name="msvalidate.01" content="CA6A83218C1ED72C9E6EF7298BA5549D" />
}
I did then have to flush the Orchard cache to make sure Bing picked up the addition to the page markup straight away.

No Comments

Add a Comment