XF 2.2 How to add seperate block images of forum homepage and settings page?

TheMasso

Member
The same block images that I made for only categories are showing on settings page too. I really want to remove it and seperate them from eachother. How can I do this? Thanks.
 

Attachments

  • SS-1.webp
    SS-1.webp
    55.2 KB · Views: 22
  • SS-2.webp
    SS-2.webp
    19.4 KB · Views: 22
Solution
The style property is applied but not the custom css in extra.less :unsure:
Try this code to see if it is applied
Less:
.block--category .block-header {
    background: red;
}
If you mean by custom settings in Style Properties of Block settings, I revert back to default by clicking the tick box and tried the code you gave me but images are not appearing.

Now, I tried the code again and it's still not working.

Edit: I removed the .block-category from the line, it worked but still showing up on the settings, users online page tabs.
 

Attachments

  • Blocks.webp
    Blocks.webp
    41.4 KB · Views: 11
  • Code.webp
    Code.webp
    37.8 KB · Views: 11
  • Image.webp
    Image.webp
    46.2 KB · Views: 8
Less:
.block--category .block-header {
    background: url("https://i.imgur.com/lXDEn06.png");
}

But you should host the image on your own server rather than a third party service like imgur
 
Oh, I really missed a put dot in the beginning of the last code you gave me. :ROFLMAO: It's working now. Thank you so much for your help. So I want to apply another header image to sidebar widgets. What do I need to change for this time?
 
Top Bottom