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

Mod Immortal Treasure Trove Carafe 2018

Mod immortal Treasure Trove Carafe 2018. This treasure contain of : Huskar - The Spoils of Dezun, Ogre Magi - Gimlek Decanter, Pangolier - Mask of Confidant, Venomancer - Cult of Aktok, Rubick - Crux of Perplex, Disruptor - Orb of Deliverance, Silencer - Glaive of Oscilla, Storm Spirit - Mandate of the Stormborn, Windranger - Sylvan Vedette and Mirana mount - Axia of Metira. Hope you guys like this mods cosmetic skin and support our favorite game Dota 2 in steam community market. No money? Just mods! Enjoy the game and boost your Matchmaking Ratings MMR and Seasonal Rankings Medals !

Rubick - Rambling Fatebender

Mod Rubick - Rambling Fatebender rare item Dota 2 Reborn from Treasure of the Emerald Revival. This item consists of : Staff of the Rambling Fatebender Cape of the Rambling Fatebender Pauldrons of the Rambling Fatebender Mask of the Rambling Fatebender Rubick - Rambling Fatebender Hope you guys like this mod and support our favorite game in steam community market. No money? Just mods! Enjoy your game!

Broodmother - Epoch of the Abysm

Black Arachnia, the Broodmother - Epoch of the Abysm mods rare item Dota 2 Reborn from Fortivus 2017 Treasure. This item consists of : Eyes of the Abysm Abdomen of the Abysm Anterior of the Abysm Legs of the Abysm Creepling of the Abysm Broodmother - Epoch of the Abysm Hope you guys like this mods and support our favorite game in steam community market. No money? Just mods! Enjoy your game!