Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1144 Lượt xem

I try to create simple email template  with odoo 16 and i want to know how i can change font family 

​  


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,


To change the font family in an email template in Odoo 16, you can directly include inline or embedded CSS in the template's HTML. Here's a simple example and a few tips to help you customize it correctly.


<t t-name="custom.email_template">

  <div style="font-family: 'Arial', sans-serif; font-size: 14px; color: #333;">

    <p>Hello <t t-esc="object.name"/>!</p>

    <p>Thanks for contacting us.</p>

  </div>

</t>


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
385
1
thg 5 25
1233
0
thg 11 24
1374
2
thg 10 24
1445
0
thg 10 24
1147