diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Blogger.com’ “Custom Templates” Now Available for Mobile Devices

Google Blogger.com team today made available “custom templates” for mobile devices.

“Many Bloggers put a lot of time and effort into creating a unique look for their blog, so today we’re excited to announce that custom templates are now available for mobile devices,” said Blogger team member.

“If you have a custom template for your blog and want it to appear on mobile browsers as well, visit the “Template” tab of your dashboard, click on the gear icon beneath the mobile template preview, and select “Custom” from the “Choose mobile template” pulldown,” explains Blogger dev team.

“Your template may not look exactly the same on a mobile browser, so click “Preview” to make sure it appears the way you want it to before you save it.”

Blogger.com's Custom Templates for mobile devices

The team notes, “If you’ve gadgets on your blog, you can also control which of them will be available in mobile view, using this new attribute: “mobile” in tag. It can be ‘default’, ‘yes’, ‘no’, or ‘only’.” The widgets that display on mobile by default are the following: “Header, Blog, Profile, PageList, AdSense, Attribution”.

The team explains that the following widget will not be available in mobile view, because it’s a BlogArchive widget.

To make it available in mobile view, add mobile=”yes” attribute to it.

Setting mobile to ‘no’ makes a widget not display in mobile view, even if available in mobile view by default.

You can also make a widget available only in mobile view by setting it to 'only'.

The content of a widget can modified for mobile view with the boolean variable data:mobile.

The above template HTML shows different contents between desktop view and mobile view, depending on the value of the data:mobile variable.

You can conditionally give different CSS properties to a same class between desktop view and mobile view, as the tag of Blogger mobile templates has mobile as its class. First, make sure the tag of your custom template is same as the following one.

Then, you can define different CSS properties for desktop and mobile view.

/* For desktop view */.date-posts {
  margin: 0 -$(separator.outdent);
  padding: 0 $(separator.outdent);

/* For mobile view */.mobile .date-posts {
  margin: 0;
  padding: 0;

Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...