2019-06-23, 08:03 PM
I'm trying to set up a profile background image using custom profile fields.
Currently I've set up a style that has this:
However; when I use this code, the default .profile-bg is being overwritten by the new code and if the user doesn't have an image - ti's just blank. I'd like to replace that blank image with a default image IF the user has not filled out the field with an image location.
Currently I've set up a style that has this:
.profile-bg {
background-image: url({$userfields['fid4']});
}
However; when I use this code, the default .profile-bg is being overwritten by the new code and if the user doesn't have an image - ti's just blank. I'd like to replace that blank image with a default image IF the user has not filled out the field with an image location.