Welcome to our site, Guest

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

How to add an email logo in XenForo

How to add an email logo in XenForo logo

Meta

Admin
Reputation: 97%
Joined
Nov 1, 2020
Messages
271
Reaction score
37
Points
28
đồng
522 K
Phiên bản XF hỗ trợ
2.2; 2.3
This isn't an easy option for XenForo. You can edit the email logo in the style property settings, but this only applies to Activity Summary Emails.

If you want your logo to appear in emails received for direct messages, you have no other setting that makes this possible.

Fortunately, we can edit templates.

Go to Templates => MAIL_CONTAINER

1743876653239.webp


Find the following lines: (should be on line 19)

CSS:
<a href="{{ link('canonical:index') }}">{$xf.options.boardTitle}</a>
Replace with

CSS:
<a href="{{ link('canonical:index') }}">
<img src="HTTPS://FULL-URL-TO-YOUR-LOGO-FILE" width="354px" alt="{$xf.options.boardTitle}">
</a>
Change the width to which suits your logo, but recommended to be under 600px wide so it works nicely on all devices. Simple but effective.
 
Last edited:
Back
Top Bottom