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.

About Rob

I've been interested in computing since the day my Dad purchased his first business PC (an Amstrad PC 1640 for anyone interested) which introduced me to MS-DOS batch programming and BASIC.

My skillset has matured somewhat since then, which you'll probably see from the posts here. You can read a bit more about me on the about page of the site, or check out some of the other posts on my areas of interest.

No Comments

Add a Comment