Add additional tag in the header

Topics: Business Logic Layer, Controls
Aug 5, 2015 at 9:49 AM
Hello,

we wanted to add few meta tags in the header. sometime this meta varies by post, so is there any way we can specified customized meta tag.

I wanted to add canonical tag in the header. most of the time it would remain constant but sometime we need this to be added manually added. is it possible?


<link rel="canonical" href="URL that would be added manually "/>
Coordinator
Aug 6, 2015 at 3:27 PM
You can modify site.master in the theme your blog uses to include any custom links. For example standard theme uses header as below - just add your link to the list.
<head runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href='http://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
    <link href="css/styles.css" rel="stylesheet" />
    <link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" />
    <link href="~/scripts/syntaxhighlighter/styles/shCore.css" rel="stylesheet" type="text/css" />
    <link href="~/scripts/syntaxhighlighter/styles/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%# ShRoot %>scripts/XRegExp.js"></script>
    <script type="text/javascript" src="<%# ShRoot %>scripts/shCore.js"></script>
    <script type="text/javascript" src="<%# ShRoot %>scripts/shAutoloader.js"></script>
    <script type="text/javascript" src="<%# ShRoot %>shActivator.js"></script>
    <asp:ContentPlaceHolder ID="HeadContent" runat="server"></asp:ContentPlaceHolder>
</head>
http://blogengine.codeplex.com/SourceControl/latest#BlogEngine/BlogEngine.NET/Custom/Themes/Standard/site.master