WELCOME TO EHOST.COM.NP

Wednesday, July 20, 2016

How to make Blogger template Responsive & mobile friendly

ads space


How to make blogger template responsive




You are thinking How are Responsive Layouts Designed. For me it's very simple to design responsive blogger template. In fact every template can be changed into responsive template. The only thing you need to know is HTML and CSS. If you know both ,  then it will be very easy to make your template responsive.


Every template can be made responsive in just 2 simple ways which are: 



1. Meta viewport.
2. @media queries.



Normally browsers opens Webpages in desktop view. It is OK to view Webpages in desktop but when you open your Webpages in mobiles and low resolution screens, it becomes very hard to read and click on links. You have to zoom every time you want to read a portion of Webpage. To overcome this situation we need to help our browser in detecting device-width which is done with metaview ports.
Meta viewport helps in detecting device width for the browsers. Now the next step is to add media queries. In media queries we use custom CSS for different screen sizes. Media queries acts as the conditional if else tags for the browsers. Example. For desktop view you set 3 column view and for tablet you use 2 column view and similarly you use single column for mobile phones. Now when a person opens your website,  then the browser will detect screen size with the help of meta viewport and then will call appropriate css for that device. To make your website responsive you need to follow two basic steps which I will explain below.




Step by step to make responsive templates.




Step 1:  add meta viewport just below the tag of your blogger template.







Step 2: Add media queries to your css file.



/* Laptops & Desktops */
@media only screen and (max-width : 1280px) {
/* css here will be rendered if and only if device width is less than 1280px */
}
/* Tablets 1024px */
@media only screen and (max-width : 1024px) {
/* css here will be rendered if and only if device width is less than 1024px */
}
/* Tablets 768px */
@media only screen and (max-width : 768px) {
/*  css here will be rendered if and only if device width is less than 768px */
}
/* Phones 640px */
@media only screen and (max-width : 640px) {
/*  css here will be rendered if and only if device width is less than 640xpx */
}
/* Phones 480px */
@media only screen and (max-width : 480px) {
/* css here will be rendered if and only if device width is less than 480px */
}
/* Small Mobiles 320px */
@media only screen and (max-width : 320px) {
/* css here will be rendered if and only if device width is less than 320px */
}




Helpful Tips:





1. Always Use percentages in writing CSS values instead of numeric values to define width of columns. This will make your template highly responsive.
2. Always use  max-width, box-sizing, and min-width properties.
3. Use css like below and only make changes with percentages.



@media only screen and (max-width : 320px) {
.sidebar{ width: 100% ; float: none; }
}




4.  If you want to hide any particular section just use Display:none; in the css.



Note: there are many breakpoints for media queries but here I show only common breakpoints that are sufficient for every type of device width. You can see my template which is highly responsive and I use only these media queries.




How to enable responsive template for blogger mobile.




If you successfully followed all the above steps then it's time to activate your responsive template for blogger mobile view.



Step 1: Go to Blogger Dashboard.
Step 2: Click on Template.
Step 3: You will see a gear icon in mobile template. Click on that icon.
Step 4: Now you have to select " Custom ”
Step 5: Save all the changes.




How to make blogger template mobile friendly without editing template and media queries




If you find about method difficult or you don't know how to use media queries with css. Then you need to use this method to make your blogger blog mobile friendly.



Step 1: Go to Blogger Dashboard.
Step 2: Click on Template.
Step 3: You will see a gear icon in mobile template. Click on that icon.
Step 4: Now you have to select “Yes. Show mobile template on mobile devices.”
Step 5: Save all the changes.

ads space
ADS SPACE

0 comments:

Post a Comment

Categories

Article How-to All Posts WordPress Android Web design Blogger Plugins CSS Google JQuery Plugins Programming Reviews Web Hosting Blogger Blogging Blogging Tips Tricks Web Development Facebook Git Internet Make Money Online Social Plugins Tips Tips and Tricks Tools Tutorials Windows WordPress Plugins Blogging Tips and Tricks Freebies GSM Google Analytics HTML How To's JavaScript Plugin Development S.E.O SEO SMS SmartPhone Social Media Tips amp; Tricks Top-Most Updates Webmaster Tools Whatsapp Applications Apps Blogger Basics Documentary Downloads Entertainment Gadgets Games Gmail Google AdSense Guest Post IPhone Make Money Blogging SVN Security Softwares Web Hosting Tips and Tricks Wordpress Tips Wordpress Tips and Tricks hostgator iOS Advertising Networks Advertising Technology Affiliates Antivirus Audience amp; Traffic Biography Blog post Blog post Blogger Blogger Errors Blogger Tips Blogger Tools Blogger Widget Blogosphere Bogger Widgets CSS selectors CSS symbols CSS3 Computer amp; Internet Content Writing Coupon Codes Data amp; Analytics Deleted blog Design DoubleClick for Publishers Email and newsletter marketting Email marketing Excel Tips Excel Tips and Tricks Facebook Tricks Feed Feedburner Feedburner subscribers Font Fun GitHub Giveaways Gmail primary inbox Gmail tabs Google sign-in Guides HTML amp; CSS HTML5 Infographics Inspirational Instagram Internet Marketing Internet Tips amp; Tricks Job Listings Knowledge Life Hacks Lists Make-Money Monetization amp; Conversion Monetize Navigation Online Marketing Other PHP Tutorials Passport Publishing amp; Content Quotes RSS Sidebar Smartphones Social Networking Status Tech Tech Blog Technology Telegram Themes UI / UX User Psychology amp; Research VB.Net Web Tools Web browser Widget Windows Tips Windows-10 ad viewability admin notice blogging tools bluehost cherry-pick clone cors custom scrollbar customizer dismissible notices duplicate post feed title git branch git clone gpg gpg2 hybridauth iPad icon font notice responsive wordpress theme same origin policy scrollbar signed git commit smartsvn theme customizer vcs wordpress theme wordpress themes

Blog Archive