Cara Membuat Iklan Melayang (Sticky) Di Mobile Site Blog Di Blogger

BangSiagian.id - Iklan melayang (floating) adalah jenis ad unit iklan yang posisinya berada di luar halaman atau tidak melekat pada tubuh blog. Iklan yang melekat tubuh di tubuh disebut ad unit in-page (di halaman). Salah satu jenis ad unit iklan melayang adalah ad unit interstitial.

Pada kesempatan ini saya akan memberikan tips cara membuat iklan melayang (sitcky) di mobile site blog di blogger. Iklan melayang yang bagikan ini hanya tampil di mobile dengan ukuran 320x50 dan posisi iklan melayang ini berada di footer mobile site blog. Iklan ini dilengkapi dengan tombol close yaitu tanda "X" sehingga iklan dapat di tutup atau tadi close dan tidak mengganggu penggunjung blog.

Iklan melayang di footer ini tidak akan langsung tampil saat pengunjung berada di blog kita, iklan ini akan tampil jika pengunjung blog kita mengkursor blog kita ke bawah.

Bagaimana cara membuatnya?. Silahkan kamu ikuti langkah-langkahnya dibawah ini.


Cara Membuat Iklan Melayang Di Mobile Site Blog Di Blogger


1. Login terlebih dahulu ke Blogger.com

2. Klik TEMA >> lalu EDIT HTML

3. Cari kode </head> atau kode ini &lt;!--</head>--&gt;&lt;/head&gt;

4. Letakkan kode dibawah ini tepat diatas kode ini </head> atau kode ini &lt;!--</head>--&gt;&lt;/head&gt;

<b:if cond='data:blog.isMobileRequest == &quot;true&quot;'>
<style>
/*<![CDATA[*/
.sticky-ad {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  overflow: visible;
  position: fixed;
  text-align: center;
  bottom: -104px;
  left: 0;
  width: 100%;
  z-index: 999;
  max-height: 104px;
  background-image: none;
  background-color: #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
  padding-top: 4px;
  transition: all .4s ease-in-out;
}
.sticky-ad-close-button {
  position: absolute;
  width: 28px;
  height: 28px;
  top: -28px;
  right: 0;
  background-image: url("data:image/svg+xml;charset=utf8,%3csvg width='13' height='13' viewBox='341 8 13 13' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg%3e%3cpath style='fill:%234F4F4F' d='M354 9.31L352.69 8l-5.19 5.19L342.31 8 341 9.31l5.19 5.19-5.19 5.19 1.31 1.31 5.19-5.19 5.19 5.19 1.31-1.31-5.19-5.19z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
  background-size: 13px 13px;
  background-position: 9px;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 12px 0 0 0;
  cursor: pointer;
}
.sticky-ad-close-button:before {
  position: absolute;
  content: "";
  top: -20px;
  right: 0;
  left: -20px;
  bottom: 0;
}
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:active,
:focus {
  outline: 0
}
/*]]>*/
</style>
</b:if>


Baca Juga: Cara Membuat iklan Melayang Di Samping Kiri Dan Kanan Blog Di Blogger


5. Selanjutnya cari kode ini </body> atau kode ini &lt;!--</body>--&gt;&lt;/body&gt;

6. Letakkan kode dibawah ini tepat diatas kode </body> atau kode ini &lt;!--</body>--&gt;&lt;/body&gt;

<b:if data:blog.isMobileRequest == &quot;true&quot;'>
<div class="sticky-ad" id="sticky-ad">

<!-- Kode iklan letakkan di sini -->

<button class="sticky-ad-close-button" onclick="document.getElementById('sticky-ad').style.display='none';" aria-label="Close this ad"></button>
</div>

<script>
//<![CDATA[
window.addEventListener("scroll",function(){
  var target = document.getElementById('sticky-ad');
  if(window.pageYOffset > 300){
   target.style.bottom = "0";
  }
},false);
//]]>
</script>
</b:if>

7. Simpan Tema

8. Lalu Buka blog dari ponsel dan lihat iklan melayangnya

Pastikan kamu melakukannya dengan benar dan jangan terburu-buru, agar cara membuat iklan melayang (sitcky) di mobile site blog di blogger berhasil.

Jika kamu merasa artikel ini bermanfaat, jangan lupa share artikel ini ke akun sosial media kamu, agar teman-teman blogger yang lian tahu artikel cara membuat iklan melayang (sitcky) di mobile site blog di blogger

Sekian artikel dari saya guys, semoga artikel ini bermanfaat dan selamat mencoba.

Referensi kode: https://www.kompiajaib.com/2018/03/membuat-iklan-sticky-pada-template-non.html

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

fitness showrooms stamford ct ea fitness fitness barre cranberry fitness center software fitness gym software apogee fitness fit online classes rpac group fitness classes fitness management software seo explanation digital marketing degree florida online courses on digital marketing digital marketing certificate programs online digital marketing course review internet marketing classes online courses on online marketing online marketing education email marketing wikipedia digital marketing degree course digital marketing classes online seo marketing company search engine optimization articles seo companys types of seo services seo technology search optimization companies seo specialists search engine optimization marketing services bitcoin merchant account bitcoin merchant services bitcoin mining cloud computing buy bitcoin australia buy stocks with bitcoin software mining bitcoin bitcoin mining gpu buy stock with bitcoin bitcoin stock chart how to invest in bitcoin stock Online Stock Trading Forex Trading Platform Real Trading Account Registration. Digital Transformation & Business Intelligence Software for Enterprises. Microsoft Professional Program in Entry-Level Software Development. Sofware recovery data wondershare data recovery. Recovery Database Network. Recovery Skills and Tools of Recovery, Coping Skills. Recover your Apple ID when you can't reset your password. Account Recovery, Prudential Financial. Transfer Procedure, Housing & Development Board. Transfer Airport Discount, Meilleures prix pour vous. Transfer to Northern Virginia Community College. Domain Transfer Service. Mobile Transfer App, Transfer Phone Contacts & More. Find information for transfer applicants to UC San Diego. Compare Energy Prices, Cheapest Gas and Electricity. Gas & electricity energy suppliers for home or business. American University Mesothelioma Law Firm Donate Car to Charity California Donate Car for Tax Credit Donate Old Cars to Charity Low Credit Line Credit Cards Dallas Mesothelioma Attorneys Car Insurance Quotes Donate your Car for Money Cheap Auto Insurance Met Auto Forensics Online Course Home Phone Internet Bundle Donating Used Cars to Charity PHD on Counseling Education Neuson Royalty Free Images Stock Car Insurance in South Dakota Email Bulk Service Webex Costs Cheap Car Insurance for Ladies Cheap Car Insurance in Virginia Register Free Domains Better Conference Calls Futuristic Architecture Mortgage Adviser Car Donate Virtual Data Rooms Online College Course Automobile Accident Attorney Auto Accident Attorney Car Accident Lawyers Data Recovery Raid the cheapest car insurance cost of car insurance best car insurance quotes insurance auto insurance quotes car quote for car insurance get insurance quote online disability insurance quote new car insurance private medical insurance home insurance car insurance brokers car insurance rates commercial insurance property insurance life insurance agent group insurance aetna health insurance cheap medical insurance liability insurance cheapest credit card company credit card universal life insurance mastercard debit card best credit cards to apply for apply for credit card online credit card apply how to apply for a credit card apply for new credit card best credit card comparison apply for visa card online cim credit card credit card transfer credit card interest credit card online best rate credit cards debit card Insurance Loans Mortgage Attorney Credit Lawyer Donate Degree Hosting Claim

Iklan Bawah Artikel