Langsung ke konten utama

Cara Menampilkan dan Menyembunyikan Gadget di Blog

Menampilkan atau menyembunyikan gadget atau biasa disebut widget blogger di home, posting atau static page (about, contact, dll) merupakan hal dasar yang wajib sobat blogger ketahui. Karena berhubungan dengan tata letak, loading dan keindahan blog itu sendiri. Semisal, sobat ingin menampilkan gadget media sosial di homepage blog sobat, namun tidak muncul di posting sobat dan lain sebagainya.
Tampil/Sembunyi Gadget
Mungkin sobat juga tertarik:
a. Membuat Gadget Melayang di Blog
b. Menambah Gadget disamping Header Blog
c. Memberi Warna Background Judul Gadget Blog

Cara Memasang:
Langkah 1. Ingat nama dari gadget yang ingin sobat tampilkan atau sembunyikan. Seperti Facebook atau Google+ atau lainnya. Untuk  gadget HTML/Javascript biasanya tertulis (HTML1, HTML2, dan yang serupa) paling mudah sobat ingat posisinya setelah gadget apa.

Langkah 2. Lihat di Template --> Edit HTML
Edit HTML

Langkah 3. Klik kiri di kotak Edit HTML yang muncul dan cari (CTRL+F) nama dari gadget yang ingin ditampilkan/disembunyikan. Misal saya beri contoh gadget "FOLLOW" :
CTRL+F di Edit HTML
Kode gadget akan terlihat "mirip" seperti ini:
<b:widget id='HTML1' locked='false' title='FOLLOW' type='HTML'>
<b:includable id='main'>
< LETAKKAN KODE TAMPIL/SEMBUNYI GADGET DISINI>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
Note: Tulisan Merah adalah tempat sobat meletakkan kode-kode berikut dan jangan lupa untuk menambahkan </b:if> pada setiap kode gadget diatas </b:includable> :

Langkah 4. Copy dan Paste kode berikut dan letakkan diposisi sesuai dengan contoh diatas:

A. Menampilkan Gadget hanya di Homepage

<b:if cond='data:blog.url == data:blog.homepageUrl'>

B. Menampilkan Gadget hanya di Postingan

<b:if cond='data:blog.pageType == &quot;item&quot;'>

C. Menyembunyikan Gadget di Postingan

<b:if cond='data:blog.pageType!= &quot;item&quot;'>

D. Menampilkan Gadget di Laman tertentu

<b:if cond='data:blog.url == &quot;URL LAMAN&quot;'>
URL LAMAN=Alamat laman yang dituju.

E. Menyembunyikan Gadget di Laman tertentu

<b:if cond='data:blog.url != &quot;URL LAMAN&quot;'>

F. Menampilkan Gadget di Laman Statis (about, contact, dll)

<b:if cond='data:blog.pageType == &quot;static_page&quot;'>

G. Menyembunyikan Gadget di Laman Statis (about, contact, dll)

<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
Sekali lagi Jangan lupa tambahkan </b:if> pada akhir kode diatas </b:includable>.

Jika sobat memiliki pertanyaan atau error silahkan tinggalkan pada kolom komentar dibawah.
Selamat mencoba dan good luck.

Komentar

Postingan populer dari blog ini

Juggernaut - Relic Blade of the Kuur-Ishiminari

This is mod sword of Juggernaut - Relic Blade of the Kuur-Ishiminari Dota 2 Reborn common weapon. This item originally from Lost Treasure of the Ivory Isles (Series 3). Green beautiful ambient effect will shown when idle and especially if Yurnero using his 1st skill "blade fury". Mod type: Standart . Hope you guys like this mod and support our favorite game in steam community market. The essence of gaming is fun. No money? Just mods. Enjoy the game and boost your MMR! For installation mod guide: How to install mods with vpk creator . Juggernaut - Relic Blade of the Kuur-Ishiminari

Terrorblade - Foulfell Corruptor

Terrorblade - Foulfell Corruptor mod mythical item Dota 2 Reborn from Treasure of the Emerald Revival with ultra rare chance to get it. This set has ambient effect on the weapon, Blades of the Foulfell Corruptor. This set items consists of: Armor of the Foulfell Corruptor, Demon Form of the, Foulfell Corruptor, Blades of the Foulfell Corruptor, Wings of the Foulfell Corruptora and Helm of the Foulfell Corruptor. It can be combine with  Terrorblade - Fractal Horns of Inner Abysm arcana mod. Hope you guys like this mod and support our favorite game in steam community market. No money? Just mods.The essential gaming is fun. Enjoy the game and boost your mmr!

Axe - Snowpack Savage

Mod skin Axe - Snowpack Savage rare item Dota 2 Reborn from Fortivus 2017 Treasure. This item consists of : Axe of the Snowpack Savage, Beard of the Snowpack Savage, Armor of the Snowpack Savage, Belt of the Snowpack Savage and Prize of the Snowpack Savage . Mod type: Standart . Hope you guys like this mod and support our favorite game in steam community market. The essence of gaming is fun. No money? Just mods. Enjoy the game and boost your MMR! For installation mod guide: How to install mods with vpk creator . Axe - Snowpack Savage