Skip to main content

Cara Menghilangkan Bulan dan Tahun di URL Postingan Blog


 
Setiap postingan yang Anda tulis di platform blogspot akan secara otomatis menampilkan tahun dan bulan pada artikel tersebut.

Tidak seperti platform wordpress yang dapat kita atur jenis permalink seperti apa yang akan kita gunakan untuk url pada postingan maupun halaman website Anda.


Berikut ini jenis-jenis permalink yang ada pada platform wordpress :

Plain

Menampilkan ID unik dari masing-masing halaman website Anda.
Contoh: https://www.caramanual.com/?p=123

Day and name

Menampilkan tanggal lengkap, tahun, bulan dan tanggal diikuti dengan judul postingan dibelakangnya.
Contoh: https://www.caramanual.com/2019/07/13/tanpa-permalink/

Month and name

Menampilkan hanya tahun dan bulan diikuti dengan judul postingan dibelakangnya.
Contoh: https://www.caramanual.com/2019/07/tanpa-permalink/

Numeric

Menampilkan hanya angka pada setiap halaman arsip website Anda.
Contoh: https://www.caramanual.com/archives/123

Post name

Menampilkan hanya judul postingan saja.
Contoh: https://www.caramanual.com/tanpa-permalink/

Custom Structure

Anda dapat mengatur struktur pada permalink website sesuai dengan keinginan Anda.


Perlu kalian ketahui bahwa pada platform blogspot juga kita dapat menggunakan salah satu jenis permalink seperti wordpress, salah satunya yaitu jenis permalink Post name.


Jenis permalink Post name ini hanya akan menampilkan judul postingan saja tanpa ada tanggal, bulan dan tahun di url artikel blog Anda.

Jadi kita dapat menghilangkan bulan dan tahun di url postingan blog dengan mudah.

Nah, bagi kalian yang ingin menghapus atau menghilangkan tahun dan bulan pada url postingan blog, silahkan ikuti langkah-langkahnya di bawah ini.

Cara Menghilangkan Bulan dan Tahun di URL Postingan Blog

Untuk menghilangkan bulan dan tahun pada url postingan blog, kita perlu menambahkan kode JavaScript khusus.

Kode javascript ini berfungsi untuk menyembunyikan bulan dan tahun pada url artikel blog, jadi meski url atau link postingan di buka dengan menggunakan tahun dan bulan seperti postingan blog pada umumnya maka akan masih tetap bisa dibuka. 

πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡

Silahkan ikuti langkah-langkahnya di bawah ini :

1. Masuk ke Blogger.
2. Klik menu Tema > Edit HTML.
3. Lalu pasang kode javascript ini di atas kode </body> atau di bawah kode <head>.

<script type='text/javascript'>
//<![CDATA[
// BloggerJS v0.3.1
// Copyright (c) 2017-2018 Kenny Cruz
// Licensed under the MIT License
var urlTotal,nextPageToken,postsDatePrefix=!1,accessOnly=!1,useApiV3=!1,apiKey="",blogId="",postsOrPages=["pages","posts"],jsonIndex=1,secondRequest=!0,feedPriority=0,amp="&amp;"[0];function urlVal(){var e=window.location.pathname,t=e.length;return".html"===e.substring(t-5)?0:t>1?1:2}function urlMod(){var e=window.location.pathname;"p"===e.substring(1,2)?(e=(e=e.substring(e.indexOf("/",1)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../"+e)):(e=(e=postsDatePrefix?e.substring(1):e.substring(e.indexOf("/",7)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../../"+e))}function urlSearch(e,t){var n=e+".html";t.forEach(function(e){-1!==e.search(n)&&(window.location=e)})}function urlManager(){var e=urlVal();0===e?accessOnly||urlMod():1===e?getJSON(postsOrPages[feedPriority],1):2===e&&(accessOnly||history.replaceState(null,null,"/"))}function getJSON(e,t){var n=document.createElement("script");if(useApiV3){var o="https://www.googleapis.com/blogger/v3/blogs/"+blogId+"/"+e+"?key="+apiKey+"#maxResults=500#fields=nextPageToken%2Citems(url)#callback=bloggerJSON";nextPageToken&&(o+="#pageToken="+nextPageToken),nextPageToken=void 0}else o=window.location.protocol+"//"+window.location.hostname+"/feeds/"+e+"/default?start-index="+t+"#max-results=150#orderby=published#alt=json-in-script#callback=bloggerJSON";o=o.replace(/#/g,amp),n.type="text/javascript",n.src=o,document.getElementsByTagName("head")[0].appendChild(n)}function bloggerJSON(e){var t=[];if(useApiV3||void 0===urlTotal&&(urlTotal=parseInt(e.feed.openSearch$totalResults.$t)),useApiV3){try{e.items.forEach(function(e,n){t.push(e.url)})}catch(e){}nextPageToken=e.nextPageToken}else try{e.feed.entry.forEach(function(n,o){var r=e.feed.entry[o];r.link.forEach(function(e,n){"alternate"===r.link[n].rel&&t.push(r.link[n].href)})})}catch(e){}urlSearch(window.location.pathname,t),urlTotal>150?(jsonIndex+=150,urlTotal-=150,getJSON(postsOrPages[feedPriority],jsonIndex)):nextPageToken?getJSON(postsOrPages[feedPriority]):secondRequest&&(nextPageToken=void 0,urlTotal=void 0,jsonIndex=1,secondRequest=!1,0===feedPriority?(feedPriority=1,getJSON("posts",1)):1===feedPriority&&(feedPriority=0,getJSON("pages",1)))}function bloggerJS(e){e&&(feedPriority=e),urlManager()}bloggerJS();
//]]>
</script>

4. Kemudan klik Simpan tema.

Catatan:
Cara di atas akan mengubah semua url postingan blog Anda sehingga tidak akan menampilkan tahun dan blog. Apabila ingin menerapkannya pada beberapa artikel silahkan masukkan kode javascript di atas pada artikel tersebut didalam mode HTML bukan Compose.

Peringatan

Dengan menerapkan metode di atas, maka semua artikel atau postingan Anda yang sudah di indeks di google akan hilang, dan google akan memperbaruinya dengan url postingan tanpa tahun dan bulan.

Tentu ini sangat beresiko, karena bisa saja rank atau peringkat artikel Anda di hasil penelusuran google akan terganggu dan berubah.


Jadi sebelum menggunakan cara ini alangkah baiknya Anda mempertimbangkan kembali hal tersebut, apabila ini diterapkan pada blog baru memang tidak masalah asalkan seterusnya Anda menggunakan kode javascript ini.

Sedangkan jika blog Anda sudah berusia cukup lama dan sudah memiliki banyak visitor atau pengunjung alangkah baiknya hal ini tidak perlu Anda lakukan.

Kesimpulan

Bagi yang ingin mengubah format permalink blogspot seperti wordpress tentu hal ini dapat dilakukan dengan menggunakan cara ini.

Anda bisa menghilangkan tahun dan bulan pada url postingan blog dengan mudah hanya menggunakan kode javascript.

Tetapi hal ini juga memiliki resiko cukup besar, karena jika ini dilakukan maka posisi rank atau peringkat postingan blog Anda akan berubah pada hasil penelusuran google.

Jadi, lebih baik Anda pikirkan kembali sebelum menerapkan ini. Baca Juga di sini
  1. Advertising on Internet
  2. Advertising on Television
  3. Affiliate Marketing and Pay Per Click
  4. Are Digital Baby Monitors Safe for Children?
  5. Choosing Baby Shower Cakes
  6. Tips on Choosing the Right Baby Shower Favors
  7. 3 Times When Your Insurance Company May Not Have Your Back
  8. 4 Things to Check After the First Year of Owning Your Motorcycle – New
  9. 5 Unusual Beer Gifts for the Hops Enthusiast
  10. 6 Perfect Father's Day Gifts for the Stylish Dad
  11. Affiliate Marketing And Home Business
  12. An Action Movie Lover's Guide to 6 Months of Adrenaline-Pumping Excitement
  13. BABY SHOWER CAKE IDEAS: FOR A GREAT CENTERPIECE AND DESSERT
  14. Bachelor Party Destinations You Gotta Experience
  15. Beercandy: You Got Chocolate In My Beer... You Got Beer In My Chocolate! – New
  16. Best car for tech fans in 2021
  17. Chocri: Create Your Own Personal Designer Chocolate Bars
  18. Coding a Simple Java User Interface Using NetBeans
  19. Dartmouth Faces Challenge to Bounce Back From Ascot Failure
  20. Define Your Fashion Style Your Way
  21. Finding Value: Do You Really Have What It Takes?
  22. Five Unforgettable Sports Events You Have to See Live
  23. Got Yourself a DUI? Here’s How to Get Your Life Back on Track After Your Conviction
  24. Grill Dad "The Ultimate Burger"
  25. Guy Health: 6 Things You Need to Know About Probiotics
  26. Healthier Wings and BBQ Beef Made Easy for Your Super Bowl Party – New
  27. Help With Your NCAA Basketball Bracket for You Non College Basketball Fans
  28. How to Be a Good Blogger
  29. How to Move Your Blog From WordPress to Blogger
  30. How to Relieve Stress
  31. How You Can Benefit From Time to Yourself
  32. Indonesian Tax Regulations
  33. More Technology We Don't Need: Spray On Shirts
  34. Pickles Pigs & Whiskey: Chef John’s Lip Smackin’ Southern Recipes for Your Next Backyard Feast
  35. Resolution Tips: 18 Tips for Getting Your Closet (and Life) Organized
  36. Six Essentials for a Super Day of Couch-Bound Sports Watching
  37. So You Wanna Be a Rock Star: 5 Keys to Being a Successful Musician
  38. So You Want to Be a Professional Online Gambler and Work in Your Boxers?
  39. Spring Style: Straw Fedoras
  40. tax brackets and federal income tax rates
  41. Television On Demand and On the Go: Miracle or Menace?
  42. Thanks For Your Service: 3 Tips for Transitioning from Active Duty Military to Civilian Life – New
  43. The 12 Annoying and Obnoxious People You Will Meet at a Super Bowl Party – New
  44. The Taco Bell Doritos Locos Tacos Are Finally Here
  45. There Really is a Don Julio Behind Don Julio Tequila... And He’ll Inspire You
  46. Three Things to Keep in Mind When Setting Up Your Perfect Man Cave
  47. Three Tips to Beat the Bookmakers at Sports Betting
  48. Top 6 Tips For Defining Your Personal Style
  49. Trunk Club: Get Great Styles Without Going Shopping
  50. TURKEY COUNTRY VAT Rate
  51. When The Bachelor Life Goes to Far – Dealing with a Drinking Problem
  52. Win a "Beef It Up" Red-Meat-Lover's I (Heart) Beef Prize Pack
  53. Win a SoyJoy "Do You Dare?" Prize Pack – New
  54. WordPress to Blogger Converter
  55. Workout Gear to Get You Through Your "Get Fit" New Year’s Resolution
​

Comments