Page number navigation adalah salah satu jenis fitur default yang biasanya telah tersedia didalam template blog. Fungsi dari page number navigation adalah untuk memudahkan para pembaca pada menelusuri konten-konten lain yang terdapat didalam situs blog.
Nah, buat jenis navigasi ini sendiri terdapat banyak macamnya, jadi jika kamu berencana buat mengubah navigasi ini, maka anda harus menghapus page number navigation ini terlebih dahulu.
Nah, apabila anda belum tahu cara menghapus hidangan navigasi ini, maka kamu sanggup mengikuti panduan berikut ini:
1. Buka
Blogger.com>
Tema>
Edit HTML2. Cari kode berikut beserta menggunakan kombinasi
CTRL+F apabila sudah ketemu, silahkan
dihapus<b:if cond='data:blog.ismobile == "false"'><b:if cond='data:blog.pageType != "item"'><b:if cond='data:blog.pageType != "static_page"'><!-- JAVASCRIPT NAVIGASI HALAMAN BERNOMOR --><script>/*<![CDATA[*/var perPage=8;var numPages=6;var firstText ='First';var lastText ='Last';var prevText ='› Prev';var nextText ='Next ›';var urlactivepage=location.href;var home_page="/";/*]]>*/</script><script>//<![CDATA[if(typeof firstText=="undefined")firstText="First";if(typeof lastText=="undefined")lastText="Last";var noPage;var currentPage;var currentPageNo;var postLabel;pagecurrentg();function looppagecurrentg(pageInfo)var html='';pageNumber=parseInt(numPages/2);if(pageNumber==numPages-pageNumber)numPages=pageNumber*2+1pageStart=currentPageNo-pageNumber;if(pageStart<1)pageStart=1;lastPageNo=parseInt(pageInfo/perPage)+1;if(lastPageNo-1==pageInfo/perPage)lastPageNo=lastPageNo-1;pageEnd=pageStart+numPages-1;if(pageEnd>lastPageNo)pageEnd=lastPageNo;html+="<span class='showpageOf'>Page "+currentPageNo+' of '+lastPageNo+"</span>";var prevNumber=parseInt(currentPageNo)-1;if(currentPageNo>1)if(currentPage=="page")html+='<span class="showpage firstpage"><a href="'+home_page+'">'+firstText+'</a></span>'elsehtml+='<span class="displaypageNum firstpage"><a href="/search/label/'+postLabel+'?&max-results='+perPage+'">'+firstText+'</a></span>'if(currentPageNo>2)if(currentPageNo==3)if(currentPage=="page")html+='<span class="showpage"><a href="'+home_page+'">'+prevText+'</a></span>'elsehtml+='<span class="displaypageNum"><a href="/search/label/'+postLabel+'?&max-results='+perPage+'">'+prevText+'</a></span>'elseif(currentPage=="page")html+='<span class="displaypageNum"><a href="#" onclick="redirectpage('+prevNumber+');return false">'+prevText+'</a></span>'elsehtml+='<span class="displaypageNum"><a href="#" onclick="redirectlabel('+prevNumber+');return false">'+prevText+'</a></span>'if(pageStart>1)if(currentPage=="page")html+='<span class="displaypageNum"><a href="'+home_page+'">1</a></span>'elsehtml+='<span class="displaypageNum"><a href="/search/label/'+postLabel+'?&max-results='+perPage+'">1</a></span>'if(pageStart>2)html+=' ... 'for(var jj=pageStart;jj<=pageEnd;jj++)if(currentPageNo==jj)html+='<span class="pagecurrent">'+jj+'</span>'else if(jj==1)if(currentPage=="page")html+='<span class="displaypageNum"><a href="'+home_page+'">1</a></span>'elsehtml+='<span class="displaypageNum"><a href="/search/label/'+postLabel+'?&max-results='+perPage+'">1</a></span>'elseif(currentPage=="page")html+='<span class="displaypageNum"><a href="#" onclick="redirectpage('+jj+');return false">'+jj+'</a></span>'elsehtml+='<span class="displaypageNum"><a href="#" onclick="redirectlabel('+jj+');return false">'+jj+'</a></span>'if(pageEnd<lastPageNo-1)html+='...'if(pageEnd<lastPageNo)if(currentPage=="page")html+='<span class="displaypageNum"><a href="#" onclick="redirectpage('+lastPageNo+');return false">'+lastPageNo+'</a></span>'elsehtml+='<span class="displaypageNum"><a href="#" onclick="redirectlabel('+lastPageNo+');return false">'+lastPageNo+'</a></span>'var nextnumber=parseInt(currentPageNo)+1;if(currentPageNo<(lastPageNo-1))if(currentPage=="page")html+='<span class="displaypageNum"><a href="#" onclick="redirectpage('+nextnumber+');return false">'+nextText+'</a></span>'elsehtml+='<span class="displaypageNum"><a href="#" onclick="redirectlabel('+nextnumber+');return false">'+nextText+'</a></span>'if(currentPageNo<lastPageNo)if(currentPage=="page")html+='<span class="displaypageNum lastpage"><a href="#" onclick="redirectpage('+lastPageNo+');return false">'+lastText+'</a></span>'elsehtml+='<span class="displaypageNum lastpage"><a href="#" onclick="redirectlabel('+lastPageNo+');return false">'+lastText+'</a></span>'var pageArea=document.getelementsByName("pageArea");var blogPager=document.getelementById("blog-pager");for(var p=0;p<pageArea.length;p++)pageArea[p].innerHTML=htmlif(pageArea&&pageArea.length>0)html=''if(blogPager)blogPager.innerHTML=htmlfunction totalcountdata(root)var feed=root.feed;var totaldata=parseInt(feed.openSearch$totalResults.$t,10);looppagecurrentg(totaldata)function pagecurrentg()var thisUrl=urlactivepage;if(thisUrl.indexOf("/search/label/")!=-1)if(thisUrl.indexOf("?Updated-max")!=-1)postLabel=thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?Updated-max"))elsepostLabel=thisUrl.substring(thisUrl.indexOf("/search/label/")+14,thisUrl.indexOf("?&max"))if(thisUrl.indexOf("?Q=")==-1&&thisUrl.indexOf(".html")==-1)if(thisUrl.indexOf("/search/label/")==-1)currentPage="page";if(urlactivepage.indexOf("#PageNo=")!=-1)currentPageNo=urlactivepage.substring(urlactivepage.indexOf("#PageNo=")+8,urlactivepage.length)elsecurrentPageNo=1document.write("<script src=""+home_page+"feeds/posts/summary?Max-results=1&alt=json-in-script&callback=totalcountdata"></script>")elsecurrentPage="label";if(thisUrl.indexOf("&max-results=")==-1)perPage=20if(urlactivepage.indexOf("#PageNo=")!=-1)currentPageNo=urlactivepage.substring(urlactivepage.indexOf("#PageNo=")+8,urlactivepage.length)elsecurrentPageNo=1document.write('<script src="'+home_page+'feeds/posts/summary/-/'+postLabel+'?Alt=json-in-script&callback=totalcountdata&max-results=1" ></script>')function redirectpage(numberpage)jsonstart=(numberpage-1)*perPage;noPage=numberpage;var nameBody=document.getelementsByTagName('head')[0];var newInclude=document.createElement('script');newInclude.type='text/javascript';newInclude.setattribute("src",home_page+"feeds/posts/summary?Start-index="+jsonstart+"&max-results=1&alt=json-in-script&callback=finddatepost");nameBody.appendChild(newInclude)function redirectlabel(numberpage)jsonstart=(numberpage-1)*perPage;noPage=numberpage;var nameBody=document.getelementsByTagName('head')[0];var newInclude=document.createElement('script');newInclude.type='text/javascript';newInclude.setattribute("src",home_page+"feeds/posts/summary/-/"+postLabel+"?Start-index="+jsonstart+"&max-results=1&alt=json-in-script&callback=finddatepost");nameBody.appendChild(newInclude)function finddatepost(root)post=root.feed.entry[0];var timestamp1=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);var timestamp=encodeURIComponent(timestamp1);if(currentPage=="page")var pAddress="/search?Updated-max="+timestamp+"&max-results="+perPage+"#PageNo="+noPageelsevar pAddress="/search/label/"+postLabel+"?Updated-max="+timestamp+"&max-results="+perPage+"#PageNo="+noPagelocation.href=pAddress//]]></script></b:if></b:if></b:if>
3. Kemudian cari kode-kode dibawah ini, kemudian hapus kode yg
bertanda merah saja ya
.img-thumbnail, .img-thumbnail img, .featuredPost .post-summary, .featuredPost .image, .popularPosts .item-thumbnail, .popularPosts .widget-content ul li img, .profile .widget-content, .popularPosts .widget-content ul, .list-label-widget-content ul, .label-info-th a, .displaypageNum a, .showpage a, .pagecurrent, #blog-pager-newer-link a, #blog-pager-older-link a, .profile .profile-link, .label-size, .berlangganan-box, #baca-pula, #baca-juga h2, .related-post-item-thumbnail, #baca-pula ul, .popularPosts ul li .item-thumbnail-only:before, .popularPosts ul li .item-content:before, .popularPosts ul li > a:before border-radius: 3px;
.displaypageNum a,.showpage a,.pagecurrent, #blog-pager-newer-link a, #blog-pager-older-link a font-size: 12px; padding: 8px 12px; margin: 2px 3px 2px 0px; display: inline-block; color: $(link.color); border: 1px solid $(link.color);
#blog-pager-older-link a:hover, #blog-pager-newer-link a:hover, a.home-link:hover, .displaypageNum a:hover,.showpage a:hover, .pagecurrent color: $(link.hover.color); border: 1px solid $(link.hover.color);
4. Simpan Tema dan selesai
Penutup
Demikianlah cara gampang menghapus atau menghilangkan nomor laman atau page number navigation. Cara ini sanggup anda terapkan pada seluruh jenis template, khususnya template VioMagz.
Nah, mungkin itu saja yang dapat aku sampaikan pada kesempatan kali ini, kurang lebihnya mohon maaf. Terimakasih serta sampai jumpa di lain kesempatan.