Kunjungi Blog terbaru saya corkismet - Coretan Kang Ismet - dan tinggalkan jejak sobat disana.

Membuat Random Post pada AMP HTML Blogger Template

Membuat Random Post atau Posting Acak pada AMP HTML Blogger Template
Masih seputar AMP HTML, kali ini saya akan berbagi cara membuat Random Post pada AMP HTML Blogger Template. Bukan Related Post ya.. untuk Related Post pada AMP HTML Blogger, saya sama Kang +Adhy Suryadi masih ngacak-ngacak kode semoga aja update secepatnya.

Untuk kode ini lumayan makan waktu, bahkan Kang Adhy seharian melototin layar PC sampe di atas kepalanya ada gambar bintang-bintang... hehehhe.

Sebagai mana judul, pastinya random post ini akan mengacak postingan yang ditampilkan. Di sini saya akan berbagi 2 Style :

Style DroidPluss





<amp-iframe expr:src='&quot;https://cdn.rawgit.com/kangismet/ki-html/master/random-posts2.html?url=&quot; + data:blog.homepageUrl' frameborder='0' height='320' layout='responsive' resizable='resizable' sandbox='allow-scripts allow-same-origin allow-modals allow-popups' width='600'>
<div aria-label='Related Posts' overflow='' role='button' tabindex='0'>Related Posts</div>
</amp-iframe>

Simpan kode tadi di mana saja, di area bawah postingan. Kalau menggunakan Kompi Design Template lebih mudah di atas </b:if> sebelum </article> penempatannya seperti gambar di bawah. (Apabila menggunakan template berbeda, sesuaikan saja)



Style Kompi Design





<amp-iframe expr:src='&quot;https://cdn.rawgit.com/KompiAjaib/amp/master/random-posts.html?url=&quot; + data:blog.homepageUrl' frameborder='0' height='320' layout='responsive' resizable='resizable' sandbox='allow-scripts allow-same-origin allow-modals allow-popups' width='600'>
<div aria-label='Related Posts' overflow='' role='button' tabindex='0'>Related Posts</div>
</amp-iframe>

Penempatannya sama seperti pada Style Droid Pluss, di area Bawah postingan / disesuaikan.

Untuk mendapatkan update terbaru di Dasbor Blogger, silahkan ikuti Blog ini

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.