Lompat ke konten Lompat ke sidebar Lompat ke footer

Membuat Sidebar 2 Kolom

1. Login ke Blogger. Klik Layout -> Edit HTML
2. Backup template anda dengan cara klik "Download Full Template".
3. Beri tanda centang pada "Expand Widget Template"
4. Cari kode

#sidebar-wrapper {
background:$sidebarBgColor url("http://www2.blogblog.com/no897 /corner_sidebar_$startSide.gif") no-repeat $startSide top;
width:254px;
float:$endSide;
padding:0;
color: $sidebarTextColor;
font-size: 83%;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}


Agar mudah untuk mencarinya ketik sidebar-wrapper atau sidebar-wrap dalam kotak Find.

Catatan:
Setiap template mempunyai susunan kode yang berbeda-beda. Jadi yang perlu anda perhatikan adalah nilai widthnya.

Sebagai contoh nilai width diatas adalah 254px. Karena kita ingin membagi kolom sidebarnya menjadi 2 bagian maka kita bagi nilai width dengan 2. Sehingga masing kolom mempunyai lebar sebesar 127px. Agar tidak berdempetan maka masing2 kolom akan kita beri margin sebesar 10px agar terdapat ruang spasi. Sehingga sekarang lebar masing2 sidebar menjadi 117px.

Setelah kita menentukan lebar sidebar kiri dan kanan. Langkah selanjutnya adalah membuatkannya kedalam kode

5. Copy kode diatas lalu letakkan dibawahnya dan ganti sidebar-wrapper pada kode ke2 menjadi menjadi sidebar-wrapper2 jadi hasilnya seperti ini


#sidebar-wrapper {
background:$sidebarBgColor url("http://www2.blogblog.com/no897/corner_sidebar_$startSide.gif") no-repeat $startSide top;
width:254px;
float:$endSide;
padding:0;
color: $sidebarTextColor;
font-size: 83%;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

#sidebar-wrapper2 {
background:$sidebarBgColor url("http://www2.blogblog.com/no897/corner_sidebar_$startSide.gif") no-repeat $startSide top;
width:254px;
float:$endSide;
padding:0;
color: $sidebarTextColor;
font-size: 83%;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}


6. Ganti nilai width masing-masing kolom menjadi 117px. Lalu tambahkan margin:0px 20px 0px 0px; pada sidebar-wrapper2. Sehingga hasilnya menjadi seperti ini

#sidebar-wrapper {
background:$sidebarBgColor url("http://www2.blogblog.com/no897/corner_sidebar_$startSide.gif") no-repeat $startSide top;
width:117px;
float:$endSide;
padding:0;
color: $sidebarTextColor;
font-size: 83%;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

#sidebar-wrapper2 {
background:$sidebarBgColor url("http://www2.blogblog.com/no897/corner_sidebar_$startSide.gif") no-repeat $startSide top;
width:117px;
float:$endSide;
padding:0;
margin:0px 20px 0px 0px;
color: $sidebarTextColor;
font-size: 83%;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

7. Setelah itu, cari kode

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='Label1' locked='false' title='kategori' type='Label'/>
<b:widget id='Followers1' locked='false' title='Followers' type='Followers'/>
<b:widget id='Feed1' locked='false' title='Herman Blog' type='Feed'/>
</b:section>
</div>

8. Yang harus anda perhatikan adalah kode berwarna biru sedangkan kode berwarna merah setiap template berbeda-beda.

9. Copy kode yang berwarna biru lalu letakkan dibawahnya. Ganti sidebar-wrapper pada kode ke-2 menjadi sidebar-wrapper2 dan id='sidebar' menjadi id='sidebar2'. Jadi hasilnya menjadi seperti ini.

<div id='sidebar-wrapper'> <b:section class='sidebar' id='sidebar' preferred='yes'>
<b:widget id='Label1' locked='false' title='kategori' type='Label'/> <b:widget id='Followers1' locked='false' title='Followers' type='Followers'/> <b:widget id='Feed1' locked='false' title='Herman Blog' type='Feed'/>
</b:section> </div>
<div id='sidebar-wrapper2'> <b:section class='sidebar' id='sidebar2' preferred='yes'> </b:section> </div>
10. Jika sudah klik Save Template.
11. Selesai. Klik Page Element untuk melihat hasilnya.

28 komentar untuk "Membuat Sidebar 2 Kolom"

  1. Thank you very much for this nice tip. This google translator helped me a lot for understanding all the terms here.

    BalasHapus
  2. thank you so much for this you are nice and great

    BalasHapus
  3. Thank you very much for your post. I liked this very much. Really informative.

    BalasHapus
  4. Certainly a complicated process, but your steps should easily help get the job done. Thanks.

    BalasHapus
  5. Thanks for your information. I will definitely follow what you said.

    BalasHapus
  6. Great post. Thanks for the share friend. I will implement this on my blog.

    BalasHapus
  7. A good description. I liked this very much. Now going to do this in my blog. Is there any problem in doing this.

    BalasHapus
  8. Thanks for your insight. How did you get these tips? Self learned or from any other source?

    BalasHapus
  9. is there any software can generate a nice template for blogger..?

    BalasHapus
  10. Thanks for your tip. You are really great. I love your blog.

    BalasHapus
  11. Good tip. I was looking for this tip for a long time.

    BalasHapus
  12. Thanks for your tutorial. But I can't find codes in my blogger template. What to do?

    BalasHapus
  13. Hi thanks for this nice and beautiful tutorial. I applied this in my blog.

    BalasHapus
  14. Nice tip. I made this in my blog and worked well for me.

    BalasHapus
  15. Amazing blog. I love it. How to add favicon to blogspot.

    BalasHapus
  16. @ smoking effects

    If you wish to add favicon for your blog, just search in google.

    BalasHapus
  17. What is your name my dear friend? I like to hear that.

    BalasHapus
  18. I applied this hack on my blog. But it is not working properly. Why?

    BalasHapus
  19. I applied this and it doesn't work. Do you need the url ?

    BalasHapus
  20. I am a regular reader of your blog and would just like to say thank you! I am due to start my own

    BalasHapus
  21. Thanks buddy. Very nice and good post. Good time.

    BalasHapus
  22. Nice blog. I bookmarked your blog. You will get good PR soon.

    BalasHapus
  23. Hi. your blog looks little bit crowdy. Also please change this template.

    BalasHapus