January 29, 2019

How to Make a Blogger Default Template Being Responsive

This time I want to share how to make / change the default / default template Blogger to be tough on all fields (screens) aka responsive.


Along with the development in which mobile phones, especially smartphones, have become ... what? The trend is trendy in people all over the world. Making the number of cyberspace surfers from mobile devices increase very rapidly. This makes the web or blog owners are required to be able to adjust the appearance of the blog, both on PC and cellular so that blog visitors from both devices can feel comfortable (user friendly).

Actually Blogger has provided features for cellular display, it's just that the display is still too simple and it feels less supportive in displaying ads. So how do you make the blog / web template responsive without activating cellular display? 

Indeed, there are many tutorials on how to make blog templates responsive, both how to create your own responsive templates and other ways, but what I will share is a new way to make responsive blog templates (Blogger). The results can be seen directly on this blog (use mobile / smartphone).

Before following this tutorial, you should first backup / back up your template, or create a new blog as an experimental material. Read and follow the steps carefully, BEWARE !!! Don't get you wrong the room is ok. 

Please follow the tutorial on how to create responsive Blogger default templates without activating cellular display.

1. Look for the following code, it is located inside tag head.
  1. <meta expr:content='data:blog.isMobile         ? &quot;width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0&quot;         : &quot;width=1100&quot;' name='viewport'/>

Delete and replace with the code below.
  1. <meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>

2. Delete the following code or something similar (located inside <b:template-skin>).
  1. <b:variable default='960px' name='content.width' type='length' value='960px'/>
  2. <b:variable default='0' name='main.column.left.width' type='length' value='0px'/>
  3. <b:variable default='310px' name='main.column.right.width' type='length' value='310px'/>

"Just to remind!!!" 
After creating a responsive Blogspot template, there are a number of things that might need to be done to support responsive blog display, or just make more SEO templates.
  • How to change the main page to post snippet and thumbnail
  • How to create a responsive dropdown pagelist menu on cellular view
  • How to make / change the Blogspot next page button to be a number
  • How to modify dynamic h1 heading tags on Blogspot
  • How to make responsive YouTube videos on blogspot .
  • How to make an image widget in the middle and responsive

Update : Now you can get the default / standard Blogger version of the Responsive with the Sidebar position that can be changed (left, right, two, or without Sidebar). Please see the list HERE . 

3. In the third stage and so on, it will be divided into three groups. 
For the template with the right sidebar, please follow the following link

Right Sidebar

For templates with 2 (two) sidebars on the left and right, please follow the following link

Two Sidebar

For templates with a sidebar on the left , just look for the 
code below (it's located inside <b:template-skin>)
  1. body {
  2. min-width: $(content.width);
  3. }
  4. .main-inner .column-left-outer {
  5. width: $(main.column.left.width);
  6. right: 100%;
  7. margin-left: -$(main.column.left.width);
  8. }

Change or change to below
  1. body {
  2. width: 1100px;
  3. margin:0 auto;
  4. min-width: $(content.width);
  5. }
  6. .main-inner .column-left-outer {
  7. width: 30%;
  8. right: 70%;
  9. position: absolute;
  10. margin-left: -$(main.column.left.width);
  11. }

Then add the following code, just place it under the code above
  1. .main-inner .column-center-outer{
  2. left:35%;
  3. width:65%;
  4. }

The width (main inner)above values can be replaced according to your taste, with a note that the total amount should not exceed 100% (less may or not). To determine the value leftand rightthat is by way of 100% minus the value width (main inner)

4. Copy then paste the following css code just above the code ]]></b:skin>.
  1. .separator a{margin-left:0px!important;margin-right:0px!important;}
  2. .post img{max-width:100%;height:auto;}

This code works so that the image display does not widen sideways. 

5. Copy then paste the following css code just above the code ]]></b:skin>, please select the css code according to the type of template you are using 

For Simple Templates and Travel Templates use the css code below
  1. /*Responsive*/
  2. @media screen and (max-width:1024px){
  3. body{width:100%!important;padding:0;}
  4. .content-inner{overflow: hidden;}
  5. }
  6. @media screen and (max-width:768px){
  7. .main-inner .column-left-outer{position:relative!important;left:0;margin:auto;width:100%!important}
  8. .main-inner .column-center-outer{left:0!important;width:100%!important}
  9. .footer-inner, .main-inner .column-left-inner, .main-inner .column-center-inner{padding:0;}
  10. .Header h1{font-size:30px;text-align:center;}
  11. .Header .description{font-size:14px;text-align:center;}
  12. }
  13. @media screen and (max-width:414px){
  14. .footer-inner .section, .main-inner .column-left-inner .section, .main-inner .column-center-inner .section {margin:10px;}
  15. }
  16. @media screen and (max-width:320px){
  17. .fauxcolumn-right-outer .fauxcolumn-inner{border-left:none;}
  18. .fauxcolumn-left-outer .fauxcolumn-inner{border-right:none;}
  19. .footer-inner .section, .main-inner .column-left-inner .section, .main-inner .column-center-inner .section {margin:0;}
  20. }

For the Awesome PT Templates, use the css code below
  1. /*Responsive*/
  2. @media screen and (max-width:1024px){
  3. body{width:100%!important;padding:0;}
  4. .content-inner{overflow: hidden;}
  5. }
  6. @media screen and (max-width:768px){
  7. .main-inner .column-left-outer{position:relative!important;left:0;margin:auto;width:100%!important}
  8. .main-inner .column-center-outer{left:0!important;width:100%!important}
  9. .main-inner .column-left-inner, .main-inner .column-center-inner{padding:0}
  10. .main-inner .section {margin:0 15px}
  11. .Header h1{font-size:30px;text-align:center;}
  12. .Header .description{font-size:14px;text-align:center;}
  13. }

For the Image Window Template, use the css below
  1. /*Responsive*/
  2. @media screen and (max-width:1024px){
  3. body{width:100%!important;padding:0;}
  4. .content-inner{overflow: hidden;}
  5. }
  6. @media screen and (max-width:768px){
  7. .main-inner .column-left-outer{position:relative!important;left:0;margin:auto;width:100%!important}
  8. .main-inner .column-center-outer {left:0!important;width:100%!important;}
  9. .main-inner .column-left-inner, .main-inner .column-center-inner {padding:0}
  10. .Header h1{font-size:30px;text-align:center;}
  11. .Header .description{font-size:14px;text-align:center;}
  12. }
  13. @media screen and (max-width:320px){
  14. .main-inner .section{margin:0 10px}
  15. .post-outer {padding:10px 10px;}
  16. }

For the Watermark Template and Softness the code is the same as the Image Window Template but delete the code number 9 (nine) then replace it with the following code
  1. .main-inner .column-center-inner{padding:0}
  2. .main-inner column-left-inner {padding:20px}

6. Save Template 
After the template is saved, then click Back, then turn off the cellular display. See your blog. 

Visit Mobile Friendly Test - Google to find out What is your blog / web Mobile friendlywithout having to activate cellular display? 

Also visit the responsive web checker site to see the blog display on each screen size. 

Note: 
Basically the core css code for all types of Blogger templates is the same, the only difference is in css padding sideandmargin sidefrom each template has different values ​​and locations, the author only experimented on the first template of each type of template. If the results of the display are not suitable (especially on a 320 pixel screen) please just work on it ok.

0 Comments:

Post a Comment