I have tried both now, also tried some changing of them...but both are not really working...
Aharis, I think, your php-code would be working proper, if the images were in default, but they are not. They are in the different themes, in the image-folder "_light" and for testing also in the image-folder for the portal "sp" in the themes.
If I would load them up into the image-folder in default, the blocks would show an image, but it would be always the same image, in each theme, which is selected. The images should change with the themes.
Emanuele, maybe I did it the wrong way?
If I have this in my custom_light.css:
.girlande_1:before {
content: '';
width: 100%;
height: auto;
background-image: url('../../images/_light/girlande_1.png');
background-repeat: no-repeat;
display: block;
}
and this in a portal block:
<center><span class="girlande_1"></span></center>
It will show nothing.
I still have to write something like this in the portal block:
<center><span class="girlande_1"><img src="themes/Winter/images/_light/girlande_1.png" width="100%" alt="Girlande"></span></center>
But so the images would not change with the theme.