Bạn cho mình xin link và thông tin vớiCustom thread fields nhé bạn
Bạn có cho mình xin với
Cao thủ chỉ cách làm cho mình với bán bàng mà không sao thêm được giống vậychỉ là cái widget thôi mà
Mình làm nhưng không thấy nó hiển hhij ở đâu bạn ạSử dụng User custom field, tạo 1 field sodienthoai, rồi add vào template thread_view thông qua addon widget framework
Bạn ơi hướng dẫn chi tiết cho mình được không, mình đặt nhưng nó không raSử dụng User custom field, tạo 1 field sodienthoai, rồi add vào template thread_view thông qua addon widget framework
<div class="tel">
<a href="tel://{$visitor.customFields.sodienthoai}" target="_blank" class="phone-call phoneNumber">
<i class="fa fa-phone fa-3x" aria-hidden="true"></i>
<span>{$visitor.customFields.sodienthoai}</span>
</a>
</div>
<style>
.tel {
text-align: center;
background: #25c65e;
padding: 12px;
}
.tel i {
float: left;
}
.tel a * {
color: #fff;
line-height: 24px;
height: 24px;
vertical-align: middle;
}
.tel span {
font-size: 18px;
}
</style>
Mình tạo rồi còn bước tiếp theo là làm như nào bạn nó không xuất hiệnTạo widget HTML trong widget framework với nội dung:
HTML:<div class="tel"> <a href="tel://{$visitor.customFields.sodienthoai}" target="_blank" class="phone-call phoneNumber"> <i class="fa fa-phone fa-3x" aria-hidden="true"></i> <span>{$visitor.customFields.sodienthoai}</span> </a> </div> <style> .tel { text-align: center; background: #25c65e; padding: 12px; } .tel i { float: left; } .tel a * { color: #fff; line-height: 24px; height: 24px; vertical-align: middle; } .tel span { font-size: 18px; } </style>
Bạn phải nhập số điện thoại trên trang profile của bạn trước để hiện widget này
View attachment 33103