
HTML
nào.

Các bước thực hiện.
Bước 1: Tìm trong template thẻ
<b:includable id='threaded-comment-form' var='post'>
.

Mã hàm
threaded-comment-form
trước khi thay thếTại hàm
threaded-comment-form
này thay thế thẻ <b:else/>
bằng đoạn mã dưới đây:
<b:else/>
<div id='threaded-comment-form'>
Thay thế thẻ
</b:if>
bằng đoạn mã dưới đây:
</div>
</b:if>

Mã hàm
threaded-comment-form
sau khi thay thếBước 2: Thay thế đoạn mã
document.getElementById(domId).insertBefore(replybox, null);
trong template của bạn bằng đoạn mã dưới đây:
document.getElementById(domId).insertBefore(document.getElementById('threaded-comment-form'), null);
Các bước trên là nhóm những thành phần cần di chuyển theo khung nhận xét vào cùng thẻ<div>
vớiid
là threaded-comment-form và khai báo lại hàminsertBefore
. Thủ thuật đã xong!
Bonus thêm 2 style cho phần ghi chú nhận xét.
Style 1:

Thêm đoạn mã dưới đây vào trước thẻ
]]></b:skin>
trong template của bạn.
#threaded-comment-form p{position:relative;background:#17b38f;padding:10px;font-size:13px;line-height:1.6em;color:#fff}
#threaded-comment-form p:after{content:"";position:absolute;bottom:-10px;left:10px;border-top:10px solid #17b38f;border-right:20px solid transparent;width:0;height:0;line-height:0}
Style 2:

Thêm đoạn mã dưới đây vào trước thẻ
]]></b:skin>
trong template của bạn.
#threaded-comment-form p{position:relative;border-radius:20px;padding:10px;font-size:13px;line-height:1.6em;color:#111}
#threaded-comment-form p,#threaded-comment-form p:after,#threaded-comment-form p:before{border:4px solid #ff4e47;background:#fff}
#threaded-comment-form p:after{bottom:-20px;right:30px;width:20px;height:20px}
#threaded-comment-form p:after,#threaded-comment-form p:before{content:"";position:absolute;border-radius:50%}
#threaded-comment-form p:before{bottom:-30px;right:60px;width:10px;height:10px}
Muốn thêm thành phần nào cần di chuyển theo khung nhận xét bạn chỉ cần đặt nó vào trong thẻ <div id='threaded-comment-form'>
.
0 nhận xét:
|» Đăng hình ảnh | code chèn sẽ là [img] Link ảnh [/img]
|» Đăng nhạc của tui | code sẽ là [nct] Link bài hát [/nct]
|» Đăng Video Youtube | code sẽ là [youtube] Link Video Youtube [/youtube]
|» <b> Chữ in đậm <\/b>
|» <i> Chữ in nghiêng <\/i>