In future more people are going to use mobile phone as compared to the computers to be online, rather they are getting started now and that's why you are here. Lots of people prefer their mobile phone to read their emails. By consideration of this, lots of bloggers who are willing to secure their position in future have enabled mobile template of their blog. By one survey carried out 2010-13, it is seen that; more than 50% of your traffic is came from mobile devices especially in US, Asia & Africa, so you can now imagine what going to happen in future.
Find <body> and replace it by following code:
Normally in HTML widget it defined as:
Here you just need to add mobile tag to it
This mobile property tag will cause that widget to be shown in mobile view.
Likewise described above, you just need to put .mobile class to each part of your old CSS class and define as per your requirement.
Example: for tablets
Multiple Screens, ONE DESIGN
Your site design is good for desktop but some of yours it get failed when it comes to small screen. Here is advanced tutorial described for making the responsive blogger HTML template compared to old fixed layout template in which you can not only able to configure the widgets to show an alternate content for mobile-view but also you will able to customize full mobile friendly template , place AdSense ad units only for mobile template too.Blogger & other sites
By default blogger have provided only 7 templates which you can NOT edit as per your requirement or it may causes different look than the one you are on now. Also there are lots of site can provide free mobile template for your blog, even though they built a nice template for your site, they have some drawbacks like you cannot place AdSense ad widget, they gonna place their banner in your template more over some sites places ads and EARN MONEY from your mobile visitors. Main disadvantage of these site according to me is that, it makes your site links different than original, so social sharing state varies.Learn how to make one design compatible for multiple screens.
Flexible or responsive template means one design which is automatically redesign itself according to the screen size. Consider following advantages of this tutorial;- Forget about maintaining separate website for mobile
- It’s good in case of SEO.
- Your site links are remained same so it doesn't cause any affect in social sharing statistics.
- Browser’s user agent doesn't cause effect on the design.
Get started
- First go to Template >> Choose Mobile template >> Select Custom.
- Save
Screen Detection
- Go to Template >> Edit HTML
- Add following code below <head> tag
CSS Redesigning
We need to load CSS property for <body> according to screen-view:Find <body> and replace it by following code:
Widget Customization
Now we can allow particular widgets to be shown on mobile view. How?Normally in HTML widget it defined as:
Here you just need to add mobile tag to it
This mobile property tag will cause that widget to be shown in mobile view.
Mobile Property Tags | Meaning |
---|---|
mobile=‘yes’ | show in mobile-view |
mobile='no' | don’t show in mobile-view |
mobile='only' | show in only mobile-view |
CSS Customization
Now actual hard work is started now. If you know CSS editing well then you can you following class to design you mobile template.Likewise described above, you just need to put .mobile class to each part of your old CSS class and define as per your requirement.
Advanced conditional CSS Customization
Learn to make web design according to screen-size conditions.Example: for tablets
Post a Comment