Understanding Data Tags

Learn how to pull dynamic blog information using Blogger's powerful data tags.

Data tags are the heart of a dynamic Blogger theme. They are placeholders that Blogger replaces with actual content, like your blog's title, post content, author names, and much more. They always start with `data:`.

Global Blog Data

These tags can be used anywhere in your theme to get information about the blog itself.

  • data:blog.title: The title of your blog.
  • data:blog.url: The main URL of your blog.
  • data:blog.pageTitle: The full title for the current page (e.g., "Blog Title: Post Title").
  • data:blog.pageType: The type of page being viewed (`item`, `archive`, `index`, `static_page`).

View-Specific Data

The `data:view` object contains information about the current page view, which is very useful for conditionals.

  • data:view.isHomepage: True on the homepage.
  • data:view.isPost: True on a single post page.
  • data:view.isPage: True on a static page.
  • data:view.isSearch: True on a search results page.

Data within Widgets

Inside a widget, like the main Blog widget (`<b:widget type='Blog'>`), you get access to more specific data. For example, inside the post loop, you can use `data:post.title`, `data:post.body`, `data:post.author`, etc.

Code Examples

xmlDisplaying the Blog Title in a Header
1
2
3
4
<div class='header'>
<h1><a expr:href='data:blog.url'><data:blog.title/></a></h1>
<p><data:blog.description/></p>
</div>

Pro Tip

You can find a comprehensive list of all available data tags on the official Blogger help documentation.

Was this lesson helpful?

Have feedback, found an issue, or have a suggestion? Let us know!