[tintuc]Hôm nay cuahangtemplate xin giới thiêu với các bạn thủ thuật mới
Tính năng mới star rating có của blogger tuy nhiên để sử dụng bạn phải đăng nhập vào http://draft.blogger.com/
Đối với theme chuẩn của blogger thì bạn chỉ cần vào
phần Layouts page (Design) -> Page element rồi click vào edit bài đăng trên trang chủ và đánh dấu vào mục “Show Star Ratings” checkbox.
1 Vào phần chỉnh sửa HMML (Edit HTML), click vào "Mở rộng mẫu tiện ích" ("expand widget templates").
<div class='post-footer-line post-footer-line-1'>
<p><data:post.body /></p>
<b:if cond='data:blog.pageType == "item"'> <span class='star-ratings'> <b:if cond='data:top.showStars'> <div expr:g:background-color='data:backgroundColor' expr:g:text-color='data:textColor' expr:g:url='data:post.absoluteUrl' g:height='42' g:type='RatingPanel' g:width='180'/> </b:if> </span> </b:if>
<b:include name='nextprev'/>
<b:if cond='data:top.showStars'>
<script src='http://www.google.com/jsapi' type='text/javascript'/>
<script type='text/javascript'>
google.load("annotations", "1");
function initialize() {
google.annotations.createAll();
google.annotations.fetch();
}
google.setOnLoadCallback(initialize);
</script>
</b:if>
7. Click Save lại và xem kết quả.Nếu có thắc mắc, hãy để lại comment phía dưới nhé, admin của cuahangtemplate.com sẵn sàng trợ giúp bạn
chúc các bạn thành công!! [/tintuc]
Post a Comment