The way I did it was to edit the
widget_visitor_panel template, changing the contents to
Code:
<xf:if is="$xf.visitor.user_id">
<div class="block"{{ widget_data($widget) }}>
<div class="block-container">
<h3 class="block-minorHeader">{$title}</h3>
<div class="block-body block-row">
<xf:macro template="account_visitor_menu" name="visitor_panel_row" />
</div>
</div>
</div>
</xf:if>
Then I added this in the in
extra.less template to add an icon before the widget title
Code:
.block[data-widget-definition="visitor_panel"]{
.block-minorHeader{
&::before{
display:inline-block;
font:normal normal normal 18px/1 "Font Awesome 5 Pro";
text-rendering:auto;
line-height:1;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
transform:translate(0, 0);
width:auto !important;
content:'\f2c1';
}
}
}
View attachment 214985