Menghilangkan widget di halaman tertentu - WLTC
Headlines News :
Home » » Menghilangkan widget di halaman tertentu

Menghilangkan widget di halaman tertentu

Berikut ini adalah tips mengoptimasi elemen includable dalam widget di blogger.

Kode - Kode:


Menampilkan widget hanya di halaman depan atau homepage:


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

KODE WIDGET DISINI 
</b:if>




Menghilangkan widget di halaman depan atau homepage :

<b:if cond='data:blog.pageType == "item"'>

KODE WIDGET DISINI

</b:if>
Menghilangkan widget di halaman statik :

<b:if cond='data:blog.pageType == "static_page"'>
KODE WIDGET DISINI</b:if>
Menampilkan widget hanya di postingan yang dipilih :
<b:if cond='data:blog.url == "URL OF Selected Post"'>KODE WIDGET DISINI
</b:if>
Menghilangkan widget di postingan yang dipilih :
<b:if cond='data:blog.url != "URL OF Selected Post"'>KODE WIDGET DISINI
</b:if>

Cara Menggunakan:
1. Buka blogger => Design => Edit HTML
2. Back up template dulu buat jaga-jaga
3. Check Expand Widget Template Box
4. Search judul widget yang mau diedit
5. Kode akan tampil seperti ini:

<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>
Kode Widget Disini
</b:includable> </b:widget>
6. Letakkan kode yang diinginkan setelah kode warna BIRU
<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
Kode Widget Disini
</b:if>
</b:includable> </b:widget>

Semoga bermanfaat.. ^_^, Jangan Lupa Komentar.

Muhammad Wahid Muslim was graduated from Health Safety and Environment (HSE) at State Islamic University of Syarif Hidayatullah Jakarta in year 2012. He is also interested in Web-Design, Photography, Computer Security, Publich Health, and Islamic Values. This site was built by him for "Communicative, Informative, Educative, Attractive" educational only.

Visit My Site | Follow On Twitter | Find In Facebook

Share this article :
Untuk menggunakan emoticon, tulis kode disamping gambar saat berkomentar
:a: :b: :c: :d: :e: :f: :g: :h: :i: :j: :k: :l: :m: :n: :o: :p: :n: :o: :p: :p: :p:
3 Comments
Tweets
Fb Comments

3 comments :

 

Join us on Facebook

Please wait..10 Seconds Cancel
Support : | |

WLTC