eL_
Well-known member
Code:
body:not(.logged-in) .message--post {
filter: blur(10px);
-webkit-filter: blur(10px);
position: relative;
}
body:not(.logged-in) .message--post:before {
content: "";
background-image: url("https://example.com/blurred-background-image.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
z-index: 1;
}
I don't know what I'm doing wrong, what I try to do is to add this code in extra.less to hide the posts with a blurring image for guests.
Seems like I can't make it work. Any advice or guidance with the code to do so?
Thank you in advance.