XF 2.2 Add background image to forum view top?

securedme

Well-known member
I happened to see an add-on that can add a background image at the top of the forum (per node) but I don't recall which add-on it is.

And I can't seem to do it manually by playing around with CSS..

Anyone can help?

1699347252022.webp
 
You'd want to add a background to the p-body-header class. However, that won't include the buttons too because they're part of the p-body-main class.

To make it different per node you'd want to do something like this:

CSS:
[data-container-key="node-1"] .p-body-header
{
    background: url('//path/to/background/image.jpg') top left no-repeat;
}

You'd change node-1 to whatever node ID you were wanting to change.
 
Last edited:
This one:

 
You'd want to add a background to the p-body-header class. However, that won't include the buttons too because they're part of the p-body-main class.

To make it different per node you'd want to do something like this:

CSS:
[data-container-key="node-1"] .p-body-header
{
    background: url('//path/to/background/image.jpg') top left no-repeat;
}

You'd change node-1 to whatever node ID you were wanting to change.

It actually works. Thanks. 🥳
 
Back
Top Bottom