Rút gọn bài đăng cho blogger đẹp mắt hơn
Vào Layout –>chọn Edit HTML check vào “expand widget templates”.Sau đó ta tìm thẻ </head> chèn đoạn code dưới vào phía trên nó:
<script language='javascript' src='http://sites.google.com/site/love4all1080/Home/jquery-1.2.3.pack.txt?attredirects=0' type='text/javascript'/>
<script language='javascript' src='http://sites.google.com/site/love4all1080/Home/jquery.extractor.txt?attredirects=0' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function() {
$('.excerpt').expander({
slicePoint: 450, // default is 100
expandEffect: 'fadeIn',
expandText: '[...]', // default is 'read more...'
userCollapseText: '[^]' // default is '[collapse expanded text]'
});
});
</script>
Sau đó tìm đoạn code giống như bên dưới<div class='post-body entry-content'> <data:post.body/> <div style='clear: both;'/> <!-- clear for photos floats --> </div>Và thay thế cả đoạn đó bằng đoạn code
<b:if cond='data:blog.pageType != "item"'> <div class='excerpt post-body entry-content'> <data:post.body/> <div style='clear: both;'/> <!-- clear for photos floats --> </div> <a expr:href="data:post.url">Read More..</a> <b:else/> <div class='post-body entry-content'> <data:post.body/> <div style='clear: both;'/> <!-- clear for photos floats --> </div> </b:if>Click Save Template
Lúc này phần nội dung trên blog của bạn sẽ hiển thị như bên dưới

Không có nhận xét nào:
Đăng nhận xét