XF 2.2 Hide smileys from guests in posts

kelle67

Well-known member
Is it possible to hide smileys from guests in posts?
If so, it would be nice to know how.
I couldn't find anything in the templates.
 
Sorry, but why you want to hide smileys/emoticons for guests? xD
Because I optimise the page for google.
This is all superfluous ballast for bots.
And google doesn't like that:
Image elements have no explicit width and height.


Not for nothing do we achieve such values
1642504824231.webp

It may be a little too much but it can't hurt either. Whether guests and bots see smileys probably doesn't matter.
 
There is nothing built in for that at the code level but you could use CSS to hide them, although I don't know what impact that will have on Google.

Less:
[data-logged-in="false"]
.smilie
{
    display: none;
}

or

Less:
[data-logged-in="false"]
.smilie
{
    visibility: hidden;
}
 
Back
Top Bottom