Cara Membuat Widget Social Bar yang Bisa Langsung Diedit pada Menu Layout

Lagi-lagi ini adalah salah satu tips untuk creator template Blogger. Agar pengguna template tidak lagi pergi ke menu Tema > Edit HTML, hanya untuk sekadar mengganti menu pada widget social media blog mereka.
Cara Membuat Widget Social Bar yang Bisa Langsung Diedit pada Menu Layout

Mengganti dan menambahkan link akun social media, dapat langsung dilakukan dari menu Layout atau Tata Letak Blogger/Blogspot.

Kita hanya butuh memanipulasi widget PageList (widget default), dengan sedikit modifikasi dan tambahan CSS.

Cara kerjanya, pengguna tinggal menambahkan atau mengedit nama social media (dalam huruf kecil) serta link dari social medianya pada widget. Seperti pada gambar berikut ini.
Cara Membuat Widget Social Bar yang Bisa Langsung Diedit pada Menu Layout

Berikut tutorialnya!

Langkah 1
Masuk ke menu Tema > Edit HTML

Langkah 2
Ganti atau tambahkan widget social media di template Anda dengan kode berikut ini:
<div itemprop='mainEntity' itemscope='itemscope' itemtype='http://schema.org/Person'>
<link expr:href='data:blog.homepageUrl' itemprop='url'/>
<b:section class='social-bar' id='iconx Widgets' maxwidgets='1' name='Icon Social Bar Widget' preferred='no' showaddelement='no'>
<b:widget id='LinkList199' locked='true' title='Social Media Icons' type='LinkList' version='1'>
  <b:widget-settings>
    <b:widget-setting name='link-5'>#</b:widget-setting>
    <b:widget-setting name='link-6'>https://www.facebook.com/</b:widget-setting>
    <b:widget-setting name='link-3'>#</b:widget-setting>
    <b:widget-setting name='link-4'>#</b:widget-setting>
    <b:widget-setting name='text-1'>follow our instagram</b:widget-setting>
    <b:widget-setting name='text-0'>whatsapp</b:widget-setting>
    <b:widget-setting name='text-3'>youtube</b:widget-setting>
    <b:widget-setting name='text-2'>pinterest</b:widget-setting>
    <b:widget-setting name='text-5'>twitter</b:widget-setting>
    <b:widget-setting name='text-4'>gplus</b:widget-setting>
    <b:widget-setting name='text-6'>facebook</b:widget-setting>
    <b:widget-setting name='sorting'>NONE</b:widget-setting>
    <b:widget-setting name='link-1'>#</b:widget-setting>
    <b:widget-setting name='link-2'>#</b:widget-setting>
    <b:widget-setting name='link-0'>http://</b:widget-setting>
  </b:widget-settings>
  <b:includable id='main'>
            <div class='widget-content'>
              <ul id='iconx'>
                <b:loop values='data:links' var='link'>
                  <li><a expr:class='data:link.name' expr:href='data:link.target' expr:title='data:link.name' itemprop='sameAs' rel='nofollow noopener' target='_blank'/></li>
                </b:loop>
              </ul>
            </div>
          </b:includable>
</b:widget>
</b:section>
  </div>

Langkah 3
Cari kode </style> lalu tambahkan CSS berikut ini diatasnya:
/* Social Bar Icon */
.social-bar{float:right;padding:5px 0;margin:0 auto;background:#5a5666}
.social-bar li{display:inline;padding:0;float:left;margin-right:5px}
.social-bar .widget ul{padding:0}
.social-bar .LinkList ul{text-align:center;margin:0 20px 0 0}
.social-bar #iconx a{display:block;font-size:95%;color:#fff;width:35px;height:35px;line-height:35px;transition:background .3s linear;-moz-transition:background .3s linear;-webkit-transition:background .3s linear;-o-transition:background .3s linear}
.social-bar #iconx a:before{font-family:FontAwesome;display:inline-block;font-size:inherit;font-style:normal;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.social-bar .android:before{content:&quot;\f17b&quot;}
.social-bar .app:before{content:&quot;\f36f&quot;} /* app store */
.social-bar .bloglovin:before{content:&quot;\f004&quot;}
.social-bar .facebook:before{content:&quot;\f09a&quot;}
.social-bar .twitter:before{content:&quot;\f099&quot;}
.social-bar .gplus:before{content:&quot;\f0d5&quot;}
.social-bar .telegram:before{content:&quot;\f2c6&quot;}
.social-bar .rss:before{content:&quot;\f09e&quot;}
.social-bar .youtube:before{content:&quot;\f167&quot;}
.social-bar .line:before{content:&quot;\f3c0&quot;}
.social-bar .skype:before{content:&quot;\f17e&quot;}
.social-bar .stumbleupon:before{content:&quot;\f1a4&quot;}
.social-bar .tumblr:before{content:&quot;\f173&quot;}
.social-bar .vine:before{content:&quot;\f1ca&quot;}
.social-bar .stack-overflow:before{content:&quot;\f16c&quot;}
.social-bar .linkedin:before{content:&quot;\f0e1&quot;}
.social-bar .dribbble:before{content:&quot;\f17d&quot;}
.social-bar .soundcloud:before{content:&quot;\f1be&quot;}
.social-bar .behance:before{content:&quot;\f1b4&quot;}
.social-bar .digg:before{content:&quot;\f1a6&quot;}
.social-bar .instagram:before{content:&quot;\f16d&quot;}
.social-bar .pinterest:before{content:&quot;\f0d2&quot;}
.social-bar .delicious:before{content:&quot;\f1a5&quot;}
.social-bar .codepen:before{content:&quot;\f1cb&quot;}
.social-bar .vimeo:before{content:&quot;\f27d&quot;;}
.social-bar .wordpress:before{content:&quot;\f19a&quot;;}
.social-bar .dropbox:before{content:&quot;\f16b&quot;;}
.social-bar .slideshare:before{content:&quot;\f1e7&quot;;}
.social-bar .vk:before{content:&quot;\f189&quot;;}
.social-bar .yahoo:before{content:&quot;\f19e&quot;;}
.social-bar .reddit:before{content:&quot;\f281&quot;;}
.social-bar #iconx a{transition:.2s all ease-in-out;}
.social-bar #iconx a:hover{transition:.2s all ease-in-out;}
.social-bar #iconx a.android:hover{color:#29d886;}
.social-bar #iconx a.app:hover{color:#2ddfff;}
.social-bar #iconx a.facebook:hover{color:#3b5999;}
.social-bar #iconx a.twitter:hover{color:#55acee;}
.social-bar #iconx a.gplus:hover{color:#dd4b39;}
.social-bar #iconx a.telegram:hover{color:#4db5f2;}
.social-bar #iconx a.youtube:hover{color:#cd201f;}
.social-bar #iconx a.pinterest:hover{color:#bd081c;}
.social-bar #iconx a.instagram:hover{color:#e4405f;}
.social-bar #iconx a.codepen:hover{color:#222;}
.social-bar #iconx a.linkedin:hover{color:#0077B5;}
.social-bar #iconx a.skype:hover{color:#00AFF0;}
.social-bar #iconx a.line:hover{color:#12e543;}
.social-bar #iconx a.dropbox:hover{color:#007ee5;}
.social-bar #iconx a.wordpress:hover{color:#21759b;}
.social-bar #iconx a.vimeo:hover{color:#1ab7ea;}
.social-bar #iconx a.slideshare:hover{color:#0077b5;}
.social-bar #iconx a.vk:hover{color:#4c75a3;}
.social-bar #iconx a.tumblr:hover{color:#34465d;}
.social-bar #iconx a.yahoo:hover{color:#410093;}
.social-bar #iconx a.stumbleupon:hover{color:#eb4924;}
.social-bar #iconx a.reddit:hover{color:#ff5700;}
.social-bar #iconx a.quora:before{content:&quot;\f2c4&quot;;}
.social-bar #iconx a.quora:hover{color:#b92b27;}
.social-bar #iconx a.yelp:before{content:&quot;\f1e9&quot;;}
.social-bar #iconx a.yelp:hover{color:#af0606;}
.social-bar #iconx a.weibo:before{content:&quot;\f18a&quot;;}
.social-bar #iconx a.weibo:hover{color:#df2029;}
.social-bar #iconx a.phunt:before{content:&quot;\f288&quot;;}
.social-bar #iconx a.phunt:hover{color:#da552f;}
.social-bar #iconx a.hackernews:before{content:&quot;\f1d4&quot;;}
.social-bar #iconx a.hackernews:hover{color:#ff6600;}
.social-bar #iconx a.soundcloud:hover{color:#ff3300;}
.social-bar #iconx a.whatsapp:before{content:&quot;\f232&quot;;}
.social-bar #iconx a.whatsapp:hover{color:#25D366;}
.social-bar #iconx a.wechat:before{content:&quot;\f1d7&quot;;}
.social-bar #iconx a.wechat:hover{color:#09b83e;}
.social-bar #iconx a.vine:hover{color:#00b489;}
.social-bar #iconx a.slack:before{content:&quot;\f198&quot;;}
.social-bar #iconx a.slack:hover{color:#3aaf85;}
.social-bar #iconx a.dribbble:hover{color:#ea4c89;}
.social-bar #iconx a.dribbble:hover{color:#ea4c89;}
.social-bar #iconx a.flickr:before{content:&quot;\f16e&quot;;}
.social-bar #iconx a.flickr:hover{color:#ff0084;}
.social-bar #iconx a.foursquare:before{content:&quot;\f180&quot;;}
.social-bar #iconx a.foursquare:hover{color:#f94877;}
.social-bar #iconx a.behance:hover{color:#131418;}
.social-bar #iconx a.rss:hover{color:#f57d00;}
.social-bar #iconx a.stack-overflow:hover{color:#f57d00;}
.social-bar #iconx a.digg:hover{color:#131418;}
.social-bar #iconx a.delicious:hover{color:#0084ff;}
.social-bar ul#social a:hover{opacity:1}

Langkah 4
Simpan tema

Perlu dipahami bahwa tutorial di atas adalah dasarnya saja. Untuk pengaturan letak widget lebih lanjut, misalnya ingin meresponsive widget pada perangkat yang berbeda, silahkan custom lagi CSS-nya pada media query tertentu.

Demikian tutorial tentang Cara Membuat Widget Social Bar yang Bisa Langsung Diedit pada Menu Layout atau Tata Letak Blogger. Semoga bermanfaat dan selamat mencoba!
Niagahoster
Starts from
$2.5
/Month

Vultr

Read Review
  • One-click installation of 20+ apps
  • Available 17 worldwide locations
  • 100% local SSD and high performance Intel CPUs
  • Infinite OS combinations
Visit Site
Gunakan link di atas untuk saldo akun $100 gratis
DigitalOcean
Starts from
$5
/Month

DigitalOcean

Read Review
  • Deploy custom image, RDP, 1-Click App, or standard distribution
  • Flexibility and scalability
  • Fantastic average uptime of 99.99%
  • Infinite OS combinations (Linux and Windows)
  • Developer-friendly tools and APIs
Visit Site
Topup $25 to gets $100 in credit over 60 days with refer link above
Niagahoster
Mulai dari
Rp10K
/Bulan

Niagahoster

View Details
  • Free SSL Certificate
  • Garansi 30 hari
  • Free domain & website migration
  • Tersedia unlimited disk space (shared hosting, kecuali paket bayi)
Visit Site
Diskon unlimited hosting hingga 75%
Niagahoster
VPS mulai dari
Rp68
/Jam

IDCloudHost

View Details
  • One-Click Deploy
  • Lokasi server Indonesia termurah
  • Instal berbagai Control Panel, VM, OS dan aplikasi
  • Menghubungkan dengan API
Visit Site
Dapatkan free credit Rp50K dengan minimal topup Rp50K
Free and premium blogger templates