Sitemap chọn nhãn tự động cho blogger

Sitemap chọn nhãn tự động cho blogger

Site map là tiện ích được rất nhiều blogger sử dụng, Bởi nó có rất nhiều chức năng như điều hướng người đọc đến các bài viết mà họ quan tâm. Giúp họ có thể tìm được những bài đọc theo nhãn khác nhau. Hiện nay có rất nhiều loại site map khác nhau. Tuy nhiên sitemap hôm nay mình giới thiệu hoàn toàn mới. Với tiện ích này bạn có thể sắp xếp bài viết theo ý muốn và theo nhãn bạn muốn xem. Ngoài ra còn tích hợp sắp sếp bài viết theo từ khóa mà bạn quan tâm. Các bài viết hiển thị theo định trước và sẽ được tải thêm khi người dùng bấm vào các liên kết cuối tiện ích.
Ảnh minh họa


☼ Một số đặc điểm nổi bật của tiện ích Sitemap này:

» Bạn có thể chọn Nhãn để xem theo ý muốn của bạn hoặc xem cả blog.
» Bài viết hiển thị với số lượng định trước và có thể tải thêm bằng cách bấm vào liên kết tải thêm cuối tiện ích (Hiệu ứng tải thêm giống trang facebook hay google +). Với cách tải này thì tiện ích sẽ load nhanh hơn rất nhiều so với các tiện ích Sitemap trước đây.
» Bạn có thể hiển thị bài viết theo từ khóa, hay nói cách khác là bạn có thể tìm kiếm trực tiếp trên sitemap.
» Tính tùy biến cao, bạn có thể thoải mái tùy biến màu chữ, phần mô tả bài viết, số lượng bài hiển thị, kích thước ảnh thu nhỏ.
» Hiển thị ảnh thumbnail thu nhỏ đại diện cho những bài viết không có hình ảnh.

☼ Cách thêm Sitemap 2 cột tự động chọn nhãn theo ý độc giả cho blogger:

1. Đăng nhập vào tài khoản Blogger
2. Vào Trang (Trang)
3. Chọn Trang mới (New page)=> Trang trống (Blank Page) (Bạn có thể xem hướng dẫn bằng hình ảnh tại đây).
Tạo thêm trang cho blogger - Hướng dẫn tạo thêm trang cho blogspot
- Tạo một trang mới để tạo một bài viết có tiêu đề là Sitemap (Tất nhiên bạn có thể đặt tiêu đề khác nếu bạn muốn) => Tại phần nội dung bạn bấm vào tab HTML, Sau đó dán đoạn code bên dưới vào:
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
<style type="text/css">
#resultDesc {
    margin:0 30px;
    padding:0 0;
    border-bottom:4px solid #31353e;
    display:none;
}
#resultDesc span {
    display:block;
    margin:0 0;
    padding:5px 10px 7px;
    color:#D64D52;
}
#feedContainer {
    display:block;
    clear:both;
    margin:0 30px;
    padding:0 0;
    overflow:hidden;
    position:relative;
    border:1px solid #3d464f;
    border-top:none;
    text-shadow:0 1px 0 rgba(0, 0, 0, .4);
}
#feedContainer:after {
    content:"";
    display:block;
    width:1px;
    height:100%;
    position:absolute;
    top:0;
    bottom:0;
    left:50%;
    background-color:#3d464f;
}
#feedContainer li {
    list-style:none;
    margin:0 0;
    padding:0 0;
    border-top:1px solid #3d464f;
    color:#999;
    width:50%;
    float:left;
    display:inline;
}
#feedContainer li .inner {
    margin:15px 16px;
    height:120px;
    overflow:hidden;
    word-wrap:break-word;
    text-overflow:ellipsis;
}
#feedContainer li a {
    text-decoration:none;
    color:#5687B8;
}
#feedContainer li a:hover {
    text-decoration:none;
    color:#eee;
}
#feedContainer li a.toc-title {
    font-weight:bold;
    font-size:12px;
    margin:0 0;
}
#feedContainer li .news-text {
    margin:10px 0 0
}
#feedContainer li a img {
    margin:0 10px 0 0;
    padding:4px 4px;
    background-color:#222;
    border:1px solid #111;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    border-radius:3px;
    -webkit-box-shadow:0 1px 0 #444;
    -moz-box-shadow:0 1px 0 #444;
    box-shadow:0 1px 0 #444;
    float:left;
}
#feedNav {
    margin:10px 30px 0;
    text-align:center;
    font:normal bold 12px/30px Verdana, Arial, Sans-Serif;
}
#feedNav a, #feedNav span {
    background-color:#111;
    padding:0 0;
    color:#999;
    text-decoration:none;
    display:block;
}
#feedNav a:hover, #feedNav a:active {
    background-color:black;
    color:white;
    border:none !important;
}
#feedNav span {
    cursor:wait
}
#table-outer {
    padding:7px 10px;
    margin:30px 30px 0;
}
#table-outer input {
    display:inline-block;
    vertical-align:top;
    margin:0 2px 0 0;
    padding:0 0;
}
#table-outer table {
    border:none
}
#table-outer td {
    padding:2px 2px;
    border:none;
}
#table-outer label {
    font-weight:bold;
    color:#999;
    text-shadow:0 1px 0 rgba(0, 0, 0, .4);
    display:block;
    text-align:right;
    margin:0 10px 0 0;
}
#table-outer select[disabled] {
    opacity:.4
}
#postSearcher {
    display:block;
    margin:0 0;
    padding:0 0;
}
#postSearcher input, #table-outer select {
    width:180px;
    background-color:#111;
    border:none;
    display:block;
    margin:0 0;
    padding:5px 5px;
    font:normal normal 10px Tahoma, Verdana, Arial, Sans-Serif;
    text-transform:uppercase;
    color:#777;
    outline:none;
    -webkit-box-shadow:inset 0 1px 3px black, 0 1px 0 #444;
    -moz-box-shadow:inset 0 1px 3px black, 0 1px 0 #444;
    box-shadow:inset 0 1px 3px black, 0 1px 0 #444;
}
#postSearcher input {
    width:170px;
    padding:5px 5px;
}
#postSearcher input:focus, #table-outer select:focus {
    background-color:#090909
}
@media (max-width:800px) {
    #feedContainer li {
        float:none;
        display:block;
        width:auto;
        height:auto;
    }
    #feedContainer:after {
        display:none
    }
}
</style>
<script type="text/javascript">
//<![CDATA[
var tocConfig = {
 url: "http://namkna.blogspot.com/",
 feedNum: 30,
 labelName: false,
 numChars: 0,
 thumbWidth: 80,
 navText: "Hiển thị thêm bài viết ▼",
 frontText: "Chọn nhãn ⇑",
 resetToc: "Reset",
 noImage: "http://2.bp.blogspot.com/-11FkySHGB5Y/TpZ6SSbsF2I/AAAAAAAAA94/zK10UaL7jgo/s1600/images.jpeg",
 loading: "<span>Đang tải...</span>",
 searching: "<span>Từ khóa...</span>",
 noResult: "Không tìm thấy kết quả cho sự lựa chọn của bạn"
};
//]]>
</script>
<br />
<div id="table-outer">
<table border="0">
        <tbody>
<tr>
                <td><label for="orderFeedBy">Sắp xếp theo:</label>
                </td>
                <td><select id="orderFeedBy">
                        <option selected="" value="published">Lần nhập cuối</option>
                        <option value="updated">Xuất bản cập nhật</option>
                    </select>
                </td>
            </tr>
<tr>
                <td><label for="labelSorterSelect">Chọn nhãn muốn xem:</label>
                </td>
                <td><span id="labelSorter"><select disabled="" id="labelSorterSelect"><option selected="">Đang tải...</option></select></span>
                </td>
            </tr>
<tr>
                <td><label for="feed-q-box">Tìm theo từ khóa:</label>
                </td>
                <td><form id="postSearcher">
<input id="feed-q-box" type="text" />
                    </form>
</td>
            </tr>
</tbody>
    </table>
</div>
<br />
<br />
<br />
<br />
<header id="resultDesc"></header>
<br />
<ul id="feedContainer"></ul>
<div id="feedNav">
</div>
<script src="https://dl.dropboxusercontent.com/u/91602513/Html/TutorialesBlogger.blogspot.com/Mapa.js" type="text/javascript"></script></div>
» Tùy chỉnh code:
  •  url: "http://namkna.blogspot.com/", thay thành URL trang blog của bạn hoặc trang blog bạn muốn hiển thị sitemap này.
  •  feedNum: 30, Bài viết tối đa hiển thị khi load lần một, đồng thời cũng là số bài viết hiển thị thêm khi bạn tải thêm bài viết mới thuộc nhãn đó.
  •  labelName: false, Tắt lệnh chọn nhãn khi truy cập lần đầu. Tức là khi độc giả truy cập lần đầu vào trang sitemap của bạn chưa chọn nhãn nào thì nó sẽ hiển thị các bài viết mới nhất của blog. Nếu muốn tắt chức năng đó bạn hãy sử false thành true. Lúc này sẽ có một thông báo Chọn nhãn ⇑ yêu cầu độc giả chọn nhãn họ muốn xem.
  •  numChars: 0,  số ký tự mô tả của bài viết sẽ hiển thị. Trường hợp để 0 là không cho hiển thị mô tả bài viết chỉ có dấu 3 chấm (...)
  • thumbWidth: 80,Là chiều cao và chiều rộng của ảnh thu nhỏ, Với đoạn code này thì ảnh của tiện ích là tương xứng với nhau về chiều rộng và chiều cao tức là ảnh có độ rộng và độ cao cùng bằng 80 px. Tất nhiên bạn có thể thay đổi phần này.
  • navText: "Hiển thị thêm bài viết ▼", Đây là ký tự nằm trong Button ở cuối bài viết, Phần mà bạn bấm vào để tải thêm bài viết.
  • Cuối cùng hãy tải file Js cuối bài viết về tại đây (Nếu chưa biết các tải các file Js thì bạn xem Bài viết này nha) và upload lên host riêng để sử dụng lâu dài nha (Nếu chưa có host bạn có thể tham khảo bài viết tạo host miễn phí với dung lượng miễn phí nhiều Tại đây).
  • background-color:#111; Là màu nền của khung tìm kiếm và chọn nhãn
  • color:#777; Là màu chữ của khung tìm kiếm và chọn nhãn
  •  color:#999; Là màu nền của chữ nằm trước các ô tùy chọn
3- Giờ lưu mẫu của bạn lại và quay trở lại trang bạn vừa tạo để kiểm tra thành quả bạn đã làm được nha.

Những code hay

Cho Thanh Ngang đầu đi theo thanh cuộn.
Sửa:
.menutoppic {background:green;width:980px;margin:0 auto;padding:0 auto;height:40px;text-shadow:1px 1px 1px #000;}

thành:

.menutoppic {background:green;width:980px;margin:0 auto;padding:0 auto;height:40px;text-shadow:1px 1px 1px #000;top:0; position:fixed;z-index:30;}

Đánh dấu link đã click :

Trước tiên dán đoạn code bên dưới vào trước ]]></b:skin>
- Để áp dụng cho cả blog:
a:link{color:#066;text-decoration:none} 
a:hover{color:#333;text-decoration:underline}
a:active hoặc
a:visited{color:#333;text-decoration:none}

- Để áp dụng cho khung:
.hoverlink a:link{color:#066;text-decoration:none} 
.hoverlink a:hover{color:#333;text-decoration:underline}
 a:active hoặc
.hoverlink a:visited{color:#333;text-decoration:none}

Để sử dụng trong khung chỉ cần dán đoạn có chứa link vào giữa 2 thẻ

<div class="hoverlink"> và </div>

dsaddsads

dsads

Widget bài viết ngẫu nhiên cho blogspot

Widget bài viết ngẫu nhiên có hình ảnh cho blogspot


Cách thực hiện

B1: Đăng nhập blogspot => Bố cục => Thêm tiện ích rồi Chọn Tiện ích HTML/JavaScript 
B2: Copy đoạn code bên duwois vào tiện ích HTML/JavaScript nhấn lưu

<style>#random-posts img{float:left;margin-right:10px;border:1px solid #999;background:#FFF;width:36px;height:36px;padding:3px}
</style>

<ul id='random-posts'>
<script type='text/javaScript'>
var rdp_numposts=5;
var rdp_snippet_length=150;
var rdp_info='yes';
var rdp_comment='Nhận xét';
var rdp_disable='Tắt Nhận xét';
var rdp_current=[];var rdp_total_posts=0;var rdp_current=new Array(rdp_numposts);function totalposts(json){rdp_total_posts=json.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=totalposts\"><\/script>');function getvalue(){for(var i=0;i<rdp_numposts;i++){var found=false;var rndValue=get_random();for(var j=0;j<rdp_current.length;j++){if(rdp_current[j]==rndValue){found=true;break}};if(found){i--}else{rdp_current[i]=rndValue}}};function get_random(){var ranNum=1+Math.round(Math.random()*(rdp_total_posts-1));return ranNum};
</script>
<script type='text/javaScript'>
function random_posts(json){a=location.href;y=a.indexOf('?m=0');for(var i=0;i<rdp_numposts;i++){var entry=json.feed.entry[i];var rdp_posttitle=entry.title.$t;if('content'in entry){var rdp_get_snippet=entry.content.$t}else{if('summary'in entry){var rdp_get_snippet=entry.summary.$t}else{var rdp_get_snippet="";}};rdp_get_snippet=rdp_get_snippet.replace(/<[^>]*>/g,"");if(rdp_get_snippet.length<rdp_snippet_length){var rdp_snippet=rdp_get_snippet}else{rdp_get_snippet=rdp_get_snippet.substring(0,rdp_snippet_length);var space=rdp_get_snippet.lastIndexOf(" ");rdp_snippet=rdp_get_snippet.substring(0,space)+"&#133;";};for(var j=0;j<entry.link.length;j++){if('thr$total'in entry){var rdp_commentsNum=entry.thr$total.$t+' '+rdp_comment}else{rdp_commentsNum=rdp_disable};if(entry.link[j].rel=='alternate'){var rdp_posturl=entry.link[j].href;if(y!=-1){rdp_posturl=rdp_posturl+'?m=0'}var rdp_postdate=entry.published.$t;if('media$thumbnail'in entry){var rdp_thumb=entry.media$thumbnail.url}else{rdp_thumb="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJf9TMBrQP8aCTdbb5zYLZiEB4sRa0zUQ-YpOAXzZ6_4TFFL7f8KB1gx_wUghMS2pxOLS9uRVnUWvgjtw5xr6HVdt6kSUdPRsdNvQsQSA3L-b_cG4LXSYtmzc4eEe54fcov_qGakbZT9QU//"}}};document.write('<li>');document.write('<img alt="'+rdp_posttitle+'" src="'+rdp_thumb+'"/>');document.write('<div><a href="'+rdp_posturl+'" rel="nofollow" title="'+rdp_snippet+'">'+rdp_posttitle+'</a></div>');if(rdp_info=='yes'){document.write('<span>'+rdp_postdate.substring(8,10)+'/'+rdp_postdate.substring(5,7)+'/'+rdp_postdate.substring(0,4)+' - '+rdp_commentsNum)+'</span>'}document.write('<div style="clear:both"></div></li>')}};getvalue();for(var i=0;i<rdp_numposts;i++){document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&start-index='+rdp_current[i]+'&max-results=1&callback=random_posts\"><\/script>')};
</script>
</ul>

Chú ý: 

  • Thay 5 bằng số bài viết bạn muốn hiển thị
  • 150 là số ký tự của đoạn trích dẫn nội dung bài đăng. 
  • Nếu không muốn hiển thị thông tin ngày tháng đăng bài và số nhận xét hãy thay yes thành ký tự bất kỳ khác.


Widget bài viết ngẫu nhiên không có hình ảnh cho blogspot

B1: Đăng nhập blogspot => Bố cục => Thêm tiện ích rồi Chọn Tiện ích HTML/JavaScript 
B2: Copy đoạn code bên duwois vào tiện ích HTML/JavaScript nhấn lưu

<div id="random-posts"></div>
<script type="text/javascript">
function getRandomPosts(json) {
    var maxEntries = 10;
    var numPosts = json.feed.openSearch$totalResults.$t;
    var indexPosts = new Array();
    for (var i = 0; i < numPosts; ++i) {
        indexPosts[i] = i;
    }
    indexPosts.sort(function() {return 0.5 - Math.random()});
    if (maxEntries > numPosts) {
        maxEntries = numPosts;
    }
    var container = document.getElementById('random-posts');
    var ul = document.createElement('ul');
    for (i = 0; i < maxEntries; ++i) {
        var entry = json.feed.entry[indexPosts[i]];
        var li = document.createElement('li');
        var a = document.createElement('a');
        a.title = entry.title.$t;
        for (var j = 0; j < entry.link.length; ++j) {
            if (entry.link[j].rel == 'alternate') {
                a.href = entry.link[j].href;
                break;
            }
        }
        a.appendChild(document.createTextNode(entry.title.$t));
        li.appendChild(a);
        ul.appendChild(li);
    }
    container.appendChild(ul);
}
</script>
<script src="http://vohangioi.blogspot.com//feeds/posts/summary?alt=json-in-script&callback=getRandomPosts&max-results=999999" type="text/javascript"></script>

Cách tạo tab nhiều tiện ích - widget cho blogspot

Cách1: Cách tạo tab với nội dung có sẵn cho blogspot

Bước 1: Đăng nhập vào blog ==> Chọn mẫu (template) ==> Chọn chỉnh sửa HTML

Lời khuyên: Các bạn nên down toàn bộ code về rồi dùng Notepad ++ để chỉnh sửa cho dễ ,nhớ sao lưu 1 bản để phòng bị lỗi code.

Chèn code CSS bên dưới vào trước thẻ ]]></b:skin>

.pageTabs {
margin: 10px auto 0;
font-size:11px;}
ul.tabs {
margin: 0;
padding: 0 ;
float: left;
list-style: none;
height: 32px;
border-bottom: 1px solid #999;
border-left: 1px solid #999;
}
ul.tabs li {
float: left;
margin: 0;
padding: 0;
height: 31px;
line-height: 31px;
border: 1px solid #999;
border-left: none;
margin-bottom: -1px;
background: #e0e0e0; /* màu nền của các Tabs*/
overflow: hidden;
position: relative;
}
ul.tabs li a {
text-decoration: none;
color: #000;
display: block;
font-size: 1.2em;
padding: 0 20px;
border: 1px solid #fff;
outline: none;
}
ul.tabs li a:hover {
background: #eff0f1;
}
html ul.tabs li.active, html ul.tabs li.active a:hover {
background: #eff0f1;
border-bottom: 1px solid #eff0f1;
}
.tab_container {
border: 1px solid #999;
border-top: none;
clear: both;
float: left;
width: 100%; /* độ rộng của phần nội dung các Tabs*/
color:#000;
background: #eff0f1; /* màu nền của phần nội dung các Tabs*/
-moz-border-radius-bottomright: 5px;
-khtml-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-khtml-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px;
}
.tab_content {
padding: 5px; 
font-size: 1.2em;
}
.tab_content img {
float: left;
margin: 10px 20px 20px 0;
border: 1px solid #ddd;
padding: 5px;
}
.tab_content p{
padding-bottom:10px;
}

Các bạn có thể tùy biến css để cho đẹp

Bước 2: Chèn tiếp code bên trên thẻ </head>

<script src="https://dl.dropboxusercontent.com/u/95745796/Jquery1.3.2.js" type="text/javascript"> </script>

<script type="text/javascript">
$(document).ready(function(){$(".tab_content").hide();$("ul.tabs li:first").addClass("active").show();$(".tab_content:first").show();$("ul.tabs li").click(function(){$("ul.tabs li").removeClass("active");$(this).addClass("active");$(".tab_content").hide();var activeTab=$(this).find("a").attr("href");$(activeTab).fadeIn(1000)})});
</script>

Bước 3: Save template lại

Bước 4: Trở về phần tử trang và thêm 1 HTML/Javascript

Thêm vào phần tử HTML/Javascript code bên dưới

<ul class="tabs">
<li><a href="#tab1">Tiêu đề TAB1</a></li>
<li><a href="#tab2">Tiêu đề TAB1</a></li>
<li><a href="#tab3">Tiêu đề TAB1</a></li>
<li><a href="#tab4">Tiêu đề TAB1</a></li>
<li><a href="#tab5">Tiêu đề TAB1</a></li>
</ul>

<div class="tab_container">
<div id="tab1" class="tab_content">
NỘI DUNG CỦA TAB 1
</div>

<div id="tab2" class="tab_content">
NỘI DUNG CỦA TAB 2
</div>

<div id="tab3" class="tab_content">
NỘI DUNG CỦA TAB 3
</div>

<div id="tab4" class="tab_content">
NỘI DUNG CỦA TAB 4
</div>

<div id="tab5" class="tab_content">
NỘI DUNG CỦA TAB 5
</div>

</div>

Chú ý: 
- Số lượng tab các bạn cũng tùy biến nhé.Ở đây mình để 5 tab
- Bạn thay các tab màu đỏ thành tên hiển thị cho tiện ích của bạn. và nội dung bạn cần hiển thị nhé

Save tiện ích và tìm vị trí đặt cho phù hợp

Cách 2: Cách tạo tab nhiều tiện ích - widget cho blogspot
Bạn làm Bước 1 - Bước 2 giống như trên

Bước 3: Đặt vị trí bạn muốn thêm tab này vào.

<ul class="tabs">
<li><a href="#tab1">Tiêu đề TAB1</a></li>
<li><a href="#tab2">Tiêu đề TAB1</a></li>
<li><a href="#tab3">Tiêu đề TAB1</a></li>
<li><a href="#tab4">Tiêu đề TAB1</a></li>
<li><a href="#tab5">Tiêu đề TAB1</a></li>
</ul>

<div class="tab_container">
<div id="tab1" class="tab_content">
Code webget 1 - Code Tiện ích 1
</div>

<div id="tab2" class="tab_content">
Code widget 2 - Code Tiện ích 2
</div>

<div id="tab3" class="tab_content">
Code widget 3 - Code Tiện ích 3
</div>

<div id="tab4" class="tab_content">
Code widget 4 - Code Tiện ích 4
</div>

<div id="tab5" class="tab_content">
Code widget 5 -Code Tiện ích 5
</div>

</div>

Các tiện ích bạn có thể thêm vào phần Code webget 1 - Tiện ích 1-2-3-4-5

Tiện ích dạng HTML/Javacripts 
(Bạn có thể tham khảo bài viết sau: Cách thêm widget vào vị trí bất kỳ trong blogspot)
<b:section class='sidebar' id='sidebar1' preferred='yes'>
<b:widget id='HTML99' locked='false' title='Bài Viết Hay' type='HTML'>
<b:includable id='main'>

<b:if cond='data:title != &quot;&quot;'>
<div class='title-left'><data:title/></div>
</b:if>
<div class='box-left'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>
</b:section>

Tiện ích dạng bài viết xem nhiều:
<b:section class='sidebar123' id='sidebartab121' preferred='yes'>
<b:widget id='PopularPosts2' locked='false' title='Xem nhiều trong tuần' type='PopularPosts'>
<b:includable id='main'>
              <b:if cond='data:title'>
                <h2>
                  <data:title/>
                </h2>
              </b:if>
              <div id='floatDiv'>
                <div class='widget-content popular-posts'>
                  <ul>
                    <b:loop values='data:posts' var='post'>
                      <li>
                        <b:if cond='data:showThumbnails == &quot;false&quot;'>
                          <b:if cond='data:showSnippets == &quot;false&quot;'>
                            <!-- (1) No snippet/thumbnail -->
                            <a expr:href='data:post.href'>
                              <data:post.title/>
                            </a>
                            <b:else/>
                            <!-- (2) Show only snippets -->
                            <div class='item-title'>
                              <a expr:href='data:post.href'>
                                <data:post.title/>
                              </a>
                            </div>
                            <div class='item-snippet'>
                              <data:post.snippet/>
                            </div>
                          </b:if>
                          <b:else/>
                          <b:if cond='data:showSnippets == &quot;false&quot;'>
                            <!-- (3) Show only thumbnails -->
                            <div class='item-thumbnail-only'>
                              <b:if cond='data:post.thumbnail'>
                                <div class='item-thumbnail'>
                                  <a expr:href='data:post.href' target='_blank'>
                                    <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
                                  </a>
                                </div>
                              </b:if>
                              <div class='item-title'>
                                <a expr:href='data:post.href'>
                                  <data:post.title/>
                                </a>
                              </div>
                            </div>
                            <div style='clear: both;'/>
                            <b:else/>
                            <!-- (4) Show snippets and thumbnails -->
                            <div class='item-content'>
                              <b:if cond='data:post.thumbnail'>
                                <div class='item-thumbnail'>
                                  <a expr:href='data:post.href' target='_blank'>
                                    <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
                                  </a>
                                </div>
                              </b:if>
                              <div class='item-title'>
                                <a expr:href='data:post.href'>
                                  <data:post.title/>
                                </a>
                              </div>
                              <div class='item-snippet'>
                                <data:post.snippet/>
                              </div>
                            </div>
                            <div style='clear: both;'/>
                          </b:if>
                        </b:if>
                      </li>
                    </b:loop>
                  </ul>
                  <b:include name='quickedit'/>
                </div>
              </div>
            </b:includable>
</b:widget>
</b:section>

Xóa Tiêu Đề Trang Chủ

                        Ở bố cục của Blog, thanh tiêu đề nằm ở vị trí thứ hai sau thanh điều hướng. Thanh tiêu đề là nơi để giới thiệu tên và miêu tả cho Blog cùng với hình nền đại diện của mình, ở mặc định Blogger chỉ cho gắn hình nền tĩnh. Vì vậy, muốn chèn banner động phải xoá hình nền này trước khi làm thủ thuật

Đầu tiên bạn đăng nhập vào blog > chọn Thiết kế > chọn Chỉnh sửa HTML, bấm cặp phím Ctrl+F để mở hộp tìm kiếm và gõ vào đó chữ header h1 và nhấn ENTER. Bạn sẽ thấy trên khung lớn có đoạn code giống như sau: 


#header h1 {
...
...
...

}
 

#header .description {
 
...
...
...

}
Các mục nhỏ này tuỳ theo mỗi giao diện sẽ có nhiều hơn 2 hoặc 3 mục, bây giờ bạn chỉ cần thêm  dòng lệnh display:none; vào mỗi cuối mục (trước dấu ngoặc móc) và lưu lại là xong.

Hay

Dong khung


Liên kết

Được tạo bởi Blogger.