<div class="block">
<div class="block-container" data-widget-id="19" data-widget-key="inviteFriends" data-widget-definition="html">
<div class="block-row">
.
<a class="shareButtons-button shareButtons-button--share is-hidden" data-xf-init="web-share" data-text="
<xf:if is=" $xf.visitor.Profile.custom_fields.userRealName">
{{ $xf.visitor.Profile.custom_fields.userRealName }} (@{{ $xf.visitor.username }})
<xf:elseif is="$xf.visitor.username" /> @{{ $xf.visitor.username }}
<xf:else /> Someone </xf:if> thought that you would enjoy {{ $xf.options.boardTitle }} — {{ $xf.options.boardDescription }}. {{ $xf.options.boardTitle }} can be found at: {{ $xf.options.homePageUrl }} However, they might think that you would be more interested in this:" data-hide=".shareButtons-button:not(.shareButtons-button--share)"> <img src="{{ $xf.homePageUrl }}/invite.png">
</a>
</div>
</div>
</div>
@media (max-width: @xf-responsiveNarrow)
{
.block[data-widget-key="inviteFriends"]
{
display: none;
}
}
extra.css
top_home
extra.less
template i put this code@media (max-width: 900px) {
[data-widget-key="top_home"] {
display: none;
}
}
Thanks for the help! I’ve updated the tutorial to now support XF 2.3, XF 2.2.9 and newer, as well as XF 2.2.8 and older.Removedata-widget-id="19" data-widget-key="inviteFriends" data-widget-definition="html"
from theblock-container
div and add this{{ widget_data($widget) }}
to theblock
div instead
We use essential cookies to make this site work, and optional cookies to enhance your experience.