2. Pada dasbor blog anda silahkan pilih Tata Letak
3. Klik Edit pada bagian posting hingga muncul jendela Mengkonfigurasi Posting Blog
4. Checklist tanggal dan pilih format tanggal “tanggal bulan tahun” misal 5 Januari 2014
5. Simpan
6. Pada panel kiri klik Template
7. Klik Edit HTML
8. Untuk menjaga hal-hal yag tidak diinginkan, lakukan backup template
9. Cari kode <h2 class='date-header'><span><data:post.dateHeader/></span></h2> dan ganti dengan kode berikut:
<div id='Date'><script>changeDate('<data:post.dateHeader/>');</script></div><b:else/><div id='Date'><script>changeDate('');</script></div>
10. Cari kode </head>. Letakkan kode berikut sebelum kode </head><script type='text/javascript'>
//<![CDATA[
var DateCalendar;
function changeDate(d){
if (d == "") {
d = DateCalendar;
}
var da = d.split(' ');
day = "<strong class='date_day'>"+da[0]+"</strong>";
month = "<strong class='date_month'>"+da[1].slice(0,3)+"</strong>";
year = "<strong class='date_year'>"+da[2]+"</strong>";
document.write(month+day+year);
DateCalendar = d;
}
//]]>
</script>
<b:if cond='data:blog.pageType != "static_page"'>
<style type='text/css'>
/* Calendar style date ----------------------------------------------- */
#Date {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitol7GSnDm1BFIICA2u6IZ3s5GWy-YE6mne-TyQEZ9WiAcFrWJiyNZ7eZaJX1RDeZJee2_UJcPvTNbt2BGC7AXaJen6BPHCGT-dB8A_uYBQxpZ2qCQaa3f4UoI5GoKb5v605ZSTWxK3To/s100-no/framedate.png) no-repeat;
display: block;
width:110px;
height:110px;
float: left;
margin: 15px 2px 0 -100px;
padding: 0 0 8px 0px;
border: 0; text-transform: uppercase;
}
.date_month {
display: block;
font-size: 15px;
font-weight:bold;
margin-top:-1px;
text-align:center;
color:#ffffff; /* Month's color */
}
.date_day {
display: block;
font-size: 50px;
font-weight:bold;
margin-top:-8px;
text-align:center;
color:#282828; /* Day's color */
}
.date_year {
display: block;
font-size: 16px;
margin-top:-8px;
text-align:center;
color:#282828; /* Year's color */
}
</style>
</b:if>
11. Simpan template dan lihat hasilnya.
//<![CDATA[
var DateCalendar;
function changeDate(d){
if (d == "") {
d = DateCalendar;
}
var da = d.split(' ');
day = "<strong class='date_day'>"+da[0]+"</strong>";
month = "<strong class='date_month'>"+da[1].slice(0,3)+"</strong>";
year = "<strong class='date_year'>"+da[2]+"</strong>";
document.write(month+day+year);
DateCalendar = d;
}
//]]>
</script>
<b:if cond='data:blog.pageType != "static_page"'>
<style type='text/css'>
/* Calendar style date ----------------------------------------------- */
#Date {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitol7GSnDm1BFIICA2u6IZ3s5GWy-YE6mne-TyQEZ9WiAcFrWJiyNZ7eZaJX1RDeZJee2_UJcPvTNbt2BGC7AXaJen6BPHCGT-dB8A_uYBQxpZ2qCQaa3f4UoI5GoKb5v605ZSTWxK3To/s100-no/framedate.png) no-repeat;
display: block;
width:110px;
height:110px;
float: left;
margin: 15px 2px 0 -100px;
padding: 0 0 8px 0px;
border: 0; text-transform: uppercase;
}
.date_month {
display: block;
font-size: 15px;
font-weight:bold;
margin-top:-1px;
text-align:center;
color:#ffffff; /* Month's color */
}
.date_day {
display: block;
font-size: 50px;
font-weight:bold;
margin-top:-8px;
text-align:center;
color:#282828; /* Day's color */
}
.date_year {
display: block;
font-size: 16px;
margin-top:-8px;
text-align:center;
color:#282828; /* Year's color */
}
</style>
</b:if>
Tidak ada komentar:
Posting Komentar