This project is read-only.

<title> tag implementation?

Feb 13, 2012 at 2:57 PM


Wondering if there is a way to implement the <title> tag for each post with BlogEngine.NET. This is pretty basic for SEO, but I can't seem to find it anywhere? Help!


Feb 13, 2012 at 3:20 PM

Each post has title tag already.

Feb 13, 2012 at 3:23 PM

Yes, but it pulls the Title from the whatever the H1 tag. Sometimes I want my Title tag to appear different than the title of my post for aesthetic reasons in search engine listing results.

Feb 13, 2012 at 3:43 PM

When you create a post, you give it a title. This is what title tag uses. It also used by your theme in PostView.ascx like this:

<h1><a href="<%=Post.RelativeLink %>" class="taggedlink"><%=Server.HtmlEncode(Post.Title) %></a></h1>

You can probably remove this H1 from ~/themes/yourtheme/PostView and set it manually on every post if you want it different for whatever reasons, although I haven't try it.