XF 2.2 Change this link color?

beerForo

Well-known member
In the emails sent from the site can we change the color of the "Visit this website" hyperlink below the body somewhere without changing the email template?
 
Nope!

So I need to change this link color. Where is it in Style Properties please?
I thought it was Style properties >> Emails >> Email link color
But it is not. Nothing changes. Thanks
xenforo email footer link.webp
 
Maybe...
In MAIL_CONTAINER template this part of code
Less:
<td class="footer" align="center" valign="top">
    <div>{{ phrase('visit_board_html', {'board_url': link('canonical:index'), 'board_title': $xf.options.boardTitle}) }}</div>
   
    <xf:if contentcheck="true">
        <div class="footerExtra"><xf:contentcheck>{{ phrase('email_footer_html') }}</xf:contentcheck></div>
    </xf:if>
</td>
Add a class to the <td> or the <div> and use extra.less template to modify the link.
 
Yeah, untested, but I assume you just need to change the phrase visit_board_html to something like:

HTML:
<a href="{board_url}" style="color:red;">Visit {board_title}</a>
I decided to do this, but use a "class=" instead, but it doesn't work in extra.less, but does work in core.less. Is there a reason for that?
 
Back
Top Bottom