Cara Mudah Membuat Widget Breaking News (Sekilas Info) Responsive di Blog
hpk
Cara Mudah Membuat Widget Breaking News (Sekilas Info) Responsive di Blog - Hai sobat
Oh ya sobat
Pada dasarnya membuat widget breaking news di blog ini sama saja dengan membuat widget yang lain seperti widget recent post, terpopuler, banyak dikunjungi atau trending topic atau apalah namanya, tapi pada intinya sama saja. cuma bedanya pada kode CSS dan javescriptnya.
Fungsi dari pada widget breaking news tidak lain adalah untuk menampilkan postingan yang terbaru dengan gaya efek slide dan dilengkapi dengan thumbnail atau gambar. Seakan-akan sang penulis memberikan sebuah informasi kepada para pembaca blog bahwasanya ada informasi terbaru yang perlu diketahui juga kira-kira begitulah.
Kedua, klik tema dan menuju ke edit HTML
Ketiga, letakkan kode CSS ini di atas ]]></b:skin> atau </style>
Kelima, Setelah sobat selesai memasang spesies tersebut sekarang langkah selanjutnya adalah salin kode javascript di bawah ini dan letakkan di atas </body>
Keenam, Setelah selesai semuanya, yang terakhir adalah letakkan kode HTML di bawah ini di antara tak pembuka <body> dan tak penutup </body>, di manapun saja anda ingin menampilkan widget breaking news, saran saya adalah pasang di bawah menu navigasi
ATAEH
semua, kali ini ATAEH
akan memberikan sebuah trik Cara Mudah Membuat Widget Breaking News (Sekilas Info) di Blog. kenapa harus memakai breaking news atau dalam bahasa indonesianya disebut sekilas info? tidak lain adalah biar blog kita terkesan profesional bukan asal-asalan.Oh ya sobat
ATAEH
, widget ini hanya bisa digunakan oleh blog yang non AMP, untuk yang AMP, admin ATAEH
belum menemukan caranya, kenapa hanya bisa digunakan oleh blog non AMP? karena nanti di dalam widget ini terdapat javascript yang harus disusupkan. Bisa saja di widget ini di pasang pada blog AMP, akan tetapi hasilnya nanti blog sobat akan mendapatkan pemberitahuan bahwa blog ini tidak valid AMPPada dasarnya membuat widget breaking news di blog ini sama saja dengan membuat widget yang lain seperti widget recent post, terpopuler, banyak dikunjungi atau trending topic atau apalah namanya, tapi pada intinya sama saja. cuma bedanya pada kode CSS dan javescriptnya.
Fungsi dari pada widget breaking news tidak lain adalah untuk menampilkan postingan yang terbaru dengan gaya efek slide dan dilengkapi dengan thumbnail atau gambar. Seakan-akan sang penulis memberikan sebuah informasi kepada para pembaca blog bahwasanya ada informasi terbaru yang perlu diketahui juga kira-kira begitulah.
Cara Memasang Widget Breaking News
Pertama, masuk lah sobat ke blog sobatKedua, klik tema dan menuju ke edit HTML
Ketiga, letakkan kode CSS ini di atas ]]></b:skin> atau </style>
/* CSS Breaking News*/
.ticker-wrap{display:block;text-align:center;margin:0 20px 20px 20px;padding:2px;background:#fefefe;border:1px solid rgba(0,0,0,0.1);border-left:5px solid #3cc091}
.ticker-wrap>span{display:inline-block;background:#fefefe;padding:0;font:700 13px 'roboto',sans-serif}
.ticker-wrap>span>a{color:#222;text-decoration:none}
#ticker{height:45px;overflow:hidden;background:#fefefe;text-align:left}
#ticker ul{padding:0;margin:0;list-style:none}
#ticker ul li{height:45px;white-space:nowrap}
#ticker ul li img{float:left;width:35px;height:35px;margin:5px 7px 5px 5px}
#ticker ul li h3{margin:0;font:700 16px 'roboto',sans-serif}
#ticker ul li h3 a{color:#333;text-decoration:none;line-height:25px!important}
#ticker ul li .tickermeta{font:400 13px 'roboto',sans-serif;line-height:20px!important;color:#999}<span style="font-family: "times new roman";"><span style="white-space: normal;">
</span></span>
Kelima, Setelah sobat selesai memasang spesies tersebut sekarang langkah selanjutnya adalah salin kode javascript di bawah ini dan letakkan di atas </body>
<script type='text/javascript'>
//<![CDATA[
// Breaking News ticker by https://www.arlinadzgn.com
function getauthor(t){for(var e=0;e<t.length;e++)var i=t[e].name.$t;return i}function getmeta(t){var e=[];e[1]="Jan",e[2]="Feb",e[3]="Mar",e[4]="Apr",e[5]="May",e[6]="Jun",e[7]="Jul",e[8]="Aug",e[9]="Sep",e[10]="Oct",e[11]="Nov",e[12]="Dec";var i=t.substring(0,4),a=t.substring(5,7),n=t.substring(8,10),r=e[parseInt(a,10)]+" "+n+" "+i;return r}function arlinadesignTicker(t){var e=document.querySelector("#ticker"),i=t.feed.entry,a="<ul id='ticket-wrapper-inner'>";if(i){for(var n=0;n<i.length;n++){for(var r=i[n],s=0;s<r.link.length;s++)if("alternate"==r.link[s].rel){var l=r.link[s].href;break}try{var o='<img src="'+r.media$thumbnail.url+'"/>'}catch(t){var o=""}var u=r.title.$t,c=getauthor(r.author),d=getmeta(r.published.$t);a+="<li>"+o+'<h3><a href="'+l+'">'+u+'</a></h3><div class="tickermeta"><span>'+c+"</span> - <span>"+d+"</span></div></li>"}a+="</ul>",e.innerHTML=a}$("#ticker").vTicker()}!function(t){var e={speed:700,pause:4e3,showItems:1,mousePause:!0,height:0,animate:!0,margin:0,padding:0,startPaused:!1},i={moveUp:function(t,e){i.animate(t,e,"up")},moveDown:function(t,e){i.animate(t,e,"down")},animate:function(e,i,a){var n=e.itemHeight,r=e.options,s=e.element,l=s.children("ul"),o="up"===a?"li:first":"li:last";s.trigger("vticker.beforeTick");var u=l.children(o).clone(!0);if(0<r.height&&(n=l.children("li:first").height()),n+=r.margin+2*r.padding,"down"===a&&l.css("top","-"+n+"px").prepend(u),i&&i.animate){if(e.animating)return;e.animating=!0,l.animate("up"===a?{top:"-="+n+"px"}:{top:0},r.speed,function(){t(l).children(o).remove(),t(l).css("top","0px"),e.animating=!1,s.trigger("vticker.afterTick")})}else l.children(o).remove(),l.css("top","0px"),s.trigger("vticker.afterTick");"up"===a&&u.appendTo(l)},nextUsePause:function(){var e=t(this).data("state"),i=e.options;e.isPaused||2>e.itemCount||a.next.call(this,{animate:i.animate})},startInterval:function(){var e=t(this).data("state"),a=this;e.intervalId=setInterval(function(){i.nextUsePause.call(a)},e.options.pause)},stopInterval:function(){var e=t(this).data("state");e&&(e.intervalId&&clearInterval(e.intervalId),e.intervalId=void 0)},restartInterval:function(){i.stopInterval.call(this),i.startInterval.call(this)}},a={init:function(n){a.stop.call(this);var r=jQuery.extend({},e);n=t.extend(r,n);var r=t(this),s={itemCount:r.children("ul").children("li").length,itemHeight:0,itemMargin:0,element:r,animating:!1,options:n,isPaused:n.startPaused?!0:!1,pausedByCode:!1};t(this).data("state",s),r.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:n.margin,padding:n.padding}),isNaN(n.height)||0===n.height?(r.children("ul").children("li").each(function(){var e=t(this);e.height()>s.itemHeight&&(s.itemHeight=e.height())}),r.children("ul").children("li").each(function(){t(this).height(s.itemHeight)}),r.height((s.itemHeight+(n.margin+2*n.padding))*n.showItems+n.margin)):r.height(n.height);var l=this;n.startPaused||i.startInterval.call(l),n.mousePause&&r.bind("mouseenter",function(){!0!==s.isPaused&&(s.pausedByCode=!0,i.stopInterval.call(l),a.pause.call(l,!0))}).bind("mouseleave",function(){(!0!==s.isPaused||s.pausedByCode)&&(s.pausedByCode=!1,a.pause.call(l,!1),i.startInterval.call(l))})},pause:function(e){var i=t(this).data("state");if(i){if(2>i.itemCount)return!1;i.isPaused=e,i=i.element,e?(t(this).addClass("paused"),i.trigger("vticker.pause")):(t(this).removeClass("paused"),i.trigger("vticker.resume"))}},next:function(e){var a=t(this).data("state");if(a){if(a.animating||2>a.itemCount)return!1;i.restartInterval.call(this),i.moveUp(a,e)}},prev:function(e){var a=t(this).data("state");if(a){if(a.animating||2>a.itemCount)return!1;i.restartInterval.call(this),i.moveDown(a,e)}},stop:function(){t(this).data("state")&&i.stopInterval.call(this)},remove:function(){var e=t(this).data("state");e&&(i.stopInterval.call(this),e=e.element,e.unbind(),e.remove())}};t.fn.vTicker=function(e){return a[e]?a[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.vTicker"):a.init.apply(this,arguments)}}(jQuery),$(function(){var t=document.createElement("script");t.src="https://"+$(".ticker-wrap").data("domain")+"/feeds/posts/summary?alt=json&callback=arlinadesignTicker",t.type="text/javascript",document.getElementsByTagName("body")[0].appendChild(t)});
//]]>
</script>
Keenam, Setelah selesai semuanya, yang terakhir adalah letakkan kode HTML di bawah ini di antara tak pembuka <body> dan tak penutup </body>, di manapun saja anda ingin menampilkan widget breaking news, saran saya adalah pasang di bawah menu navigasi
<div class='ticker-wrap' data-domain='ataeh.blogspot.com'>
<div id='ticker'>
</div>
</div>
Ganti ataeh.blogspot.com dengan Url blog/web sobat [Code by Arlina Design]Bagaimana mudahkan sobat mungkin cukup sekian dulu dari
ATAEH
tentang uraian Cara Mudah Membuat Widget Breaking News (Sekilas Info) Responsive di Blog ini. Apabila ada pertanyaan silahkan sobat tanyakan melalui komentar di bawah
the cheapest car insurance
cost of car insurance
best car insurance quotes
insurance auto
insurance quotes car
get car insurance quotes online
car insurance agent
instant car insurance quote
car insurance websites
direct car insurance
insure a car
motor car insurance quote
cheap car insurance
online quotes for car insurance
car insurers
commercial car insurance
motor insurance quote
car insurance quotes online
get a quote online
international health insurance
compare car insurance quotes
insurance for car
compare car insurance
car insurance
buy life insurance online
compare auto insurance
international medical insurance
general car insurance
cheap motor insurance
low car insurance
car insurance comparison
company car insurance
budget car insurance
private health insurance
online quote car insurance
cheap motor car insurance
car insurance for new drivers
cheap car insurance quotes online
online car insurance quotes
get car insurance quotes
car insurance quotes comparison
motor car insurance
car insurance quotes
car insurance cheap
comprehensive car insurance
best auto insurance
short term health insurance
motor insurance
cheap online car insurance
online motor insurance quotes
car insurance california
buycarinsurance
online vehicle insurance
free car insurance quotes
landlord insurance
health insurance for children
motorbike insurance
monthly car insurance
car insurance usa
car insurance reviews
car insurance renewal quotes
vehicle insurance
health insurance rates
term life insurance quotes
vehicle insurance quotes
car insurance compare
motor vehicle insurance
best car insurance
motor insurance online quote
car insurance online quote
life insurance online
supplemental health insurance
best car insurance rates
car insurance discounts
motor vehicle insurance quotes
auto insurance
cheap travel insurance
bike insurance
travel medical insurance
buy car insurance online
online motor insurance
travel insurance quote
get a quote for car insurance
health insurance agent
car insurance companies
cheap car insurance companies
travel insurance
annual travel insurance
commercial vehicle insurance
permanent life insurance
medical insurance quotes
online car insurance
cheap car insurance quotes
car insurance online
quote insurance online
level term life insurance
health insurance comparison
how much is car insurance
travel health insurance
pet health insurance
quotes on cars
health ins
travel insurance uk
quote for car insurance
get insurance quote online
disability insurance quote
temporary health insurance
temporary insurance
rental car insurance
cheap health insurance
auto insurance compare
third party car insurance
buy health insurance
auto insurance quotes
cheap insurance companies
best term life insurance
personal health insurance
online quote insurance
car insurance premium
health insurance policies
quotes for cars
whole life insurance
credit insurance
cheap van insurance
cheap term life insurance
cheap motorcycle insurance
compare life insurance
car insurance cover
health insurance
motorcycle insurance
short term car insurance
health insurance coverage
insurance qoute
cheap life insurance
house insurance quote
car insurance uk
health insurance companies
cigna health insurance
cheap insurance
cheap car insurance uk
compare health insurance
car insurance for young drivers
short term insurance
online health insurance
caravan insurance
life insurance comparison
direct insurance
health insurance plans
motor insurance online
car insurance estimator
accident insurance
home insurance quotes
nj car insurance
new car insurance
private medical insurance
home insurance
car insurance brokers
car insurance rates
commercial insurance
health insurance quotes
motor insurance companies
which car insurance
car quotes online
online auto insurance
flood insurance
cheap auto insurance quotes
car insurance agencies
business health insurance
term life insurance
truck insurance
professional indemnity insurance
life insurance
car insurance policy
long term care insurance
drive insurance
buy insurance
car ins
motorcycle insurance quote
critical illness insurance
term insurance
student health insurance
home insurance comparison
insurance rates
insurance cover
holiday insurance
insurance sites
online vehicle insurance quotes
company website
home insurance rates
compare insurance
buy insurance online
affordable medical insurance
car insurance coverage
product liability insurance
home contents insurance
buy life insurance
renters insurance
group health insurance
family health insurance
motor insurance quote online
mortgage insurance
best home insurance
personal insurance
medical insurance
property insurance
life insurance agent
group insurance
aetna health insurance
cheap medical insurance
liability insurance
rental insurance
life insurance policy
group life insurance
general liability insurance
insurance quotes online
all car insurance companies
best health insurance
insurance plans
life insurance for seniors
van insurance
website quote
universal life insurance
building insurance
co insurance
insurance car
car insurance prices
disability insurance
insurance vehicle
cheap vehicle insurance
senior life insurance
medical insurance plans
insurance health
house insurance
life insurance quotes
car quotes
cheap home insurance
0 Response to "Cara Mudah Membuat Widget Breaking News (Sekilas Info) Responsive di Blog "
Posting Komentar