Style 1: Dựa vào danh mục.
Tìm đoạn code bên dưới :
Và thay thế thành :
Tiếp theo, tìm đoạn code này :
Thay thế nó thành đoạn code dưới đây.
Cuối cùng, thêm đoạn code CSS bên dưới vào trước thẻ đóng ]]></b:skin>
Style 2: Dựa vào ngày tháng bài được đăng.
Tìm đoạn code như sau:
Ngay sau nó các bạn chèn đoạn code này :
Cuộn xuống dưới cùng của widget này ( xem hình minh họa bên dưới )
Và dán code sau vào giữa và :
Cuối cùng bạn hãy thêm một đoạn CSS như ở Style 1

Tìm đoạn code bên dưới :
1
| <b:include data='top' name='status-message'/> |
1
2
3
4
| <!-- Nếu bạn muốn bỏ status-message.<b:include data='top' name='status-message'/> --><b:include data='posts' name='breadcrumb'/> |
1
| <b:includable id='main' var='top'> |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| <b:includable id='breadcrumb' var='posts'> <b:if cond='data:blog.homepageUrl == data:blog.url'> <!-- No breadcrumb on home page --><b:else/> <b:if cond='data:blog.pageType == "item"'> <!-- breadcrumb for the post page --><p class='breadcrumbs'> <span class='post-labels'> <a expr:href='data:blog.homepageUrl' rel='tag'>Home</a> <b:loop values='data:posts' var='post'> <b:if cond='data:post.labels'> <b:loop values='data:post.labels' var='label'> <b:if cond='data:label.isLast == "true"'> » <a expr:href='data:label.url' rel='tag'><data:label.name/></a> </b:if> </b:loop> <b:else/> »Unlabelled </b:if> » <span><data:post.title/></span> </b:loop> </span> </p> <b:else/> <b:if cond='data:blog.pageType == "archive"'> <!-- breadcrumb for the label archive page and search pages.. --><p class='breadcrumbs'> <span class='post-labels'> <a expr:href='data:blog.homepageUrl'>Home</a> » Archives for <data:blog.pageName/> </span> </p> <b:else/> <b:if cond='data:blog.pageType == "index"'> <p class='breadcrumbs'> <span class='post-labels'> <b:if cond='data:blog.pageName == ""'> <a expr:href='data:blog.homepageUrl'>Home</a> » All posts <b:else/> <a expr:href='data:blog.homepageUrl'>Home</a> » Posts filed under <data:blog.pageName/> </b:if> </span> </p> </b:if> </b:if> </b:if> </b:if> </b:includable> <b:includable id='main' var='top'> |
1
2
3
4
5
6
| .breadcrumbs { padding: 5px 10px;margin-bottom: 10px;border: 1px solid #E2E2F2;font-weight: bold;} |
Style 2: Dựa vào ngày tháng bài được đăng.

1
2
3
4
5
6
| <b:includable id='main' var='top'><!-- posts --><div class='blog-posts'><b:include data='top' name='status-message'/><data:adStart/><b:loop values='data:posts' var='post'> |
1
| <b:include data='post' name='breadcrumbs'/> |

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
| <b:includable id='breadcrumbs' var='post'><b:if cond='data:blog.pageType == "item"'><p class='breadcrumbs'><span class='post-labels'>You are here:<a expr:href='data:blog.homepageUrl' rel='tag'>Home</a><script type="text/javascript">//<![CDATA[var strCrumbHref = location.href.toLowerCase();var intCrumbHtml = strCrumbHref.indexOf('.html');var intCrumbWhereAt = strCrumbHref.lastIndexOf('/', intCrumbHtml);var intCrumbYearStart = intCrumbWhereAt - 7;var intCrumbMonthStart = intCrumbWhereAt - 2;var intCrumbYear = parseInt(strCrumbHref.substr(intCrumbYearStart, 4));var intCrumbYearPlusOne = intCrumbYear + 1;var strCrumbMonthNum = strCrumbHref.substr(intCrumbMonthStart, 2);var strCrumbMonth = '';switch(strCrumbMonthNum) {case '01':strCrumbMonth = 'January';break;case '02':strCrumbMonth = 'February';break;case '03':strCrumbMonth = 'March';break;case '04':strCrumbMonth = 'April';break;case '05':strCrumbMonth = 'May';break;case '06':strCrumbMonth = 'June';break;case '07':strCrumbMonth = 'July';break;case '08':strCrumbMonth = 'August';break;case '09':strCrumbMonth = 'September';break;case '10':strCrumbMonth = 'October';break;case '11':strCrumbMonth = 'November';break;case '12':strCrumbMonth = 'December';break;}var strCrumbOutput = ' > ';strCrumbOutput += '<a href="/search?updated-min=' + intCrumbYear;strCrumbOutput += '-01-01T00%3A00%3A00-08%3A00&updated-max=' + intCrumbYearPlusOne;strCrumbOutput += '-01-01T00%3A00%3A00-08%3A00&max-results=50">' + intCrumbYear + '</a> > ';strCrumbOutput += '<a href="/' + intCrumbYear + '_' + strCrumbMonthNum + '_01_archive.html">' + strCrumbMonth + '</a>';document.write(strCrumbOutput);//]]></script><noscript><b:if cond='data:post.labels'>><b:loop values='data:post.labels' var='label'><b:if cond='data:label.isLast == "true"'><a expr:href='data:label.url' rel='tag'> <data:label.name/></a></b:if></b:loop></b:if></noscript><b:if cond='data:post.title'>> <b><data:post.title/></b></b:if></span></p></b:if><!-- End of Breadcrumbs Hack --></b:includable> |





0 comments:
Post a Comment