News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Change the background colors

Started by Edwar Colt, April 21, 2023, 08:09:36 PM

Previous topic - Next topic

Edwar Colt

Hello

how to change the background colors of some specific Boards?

Kindred

No way that that without a mod or additional themes
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Edwar Colt

I didn't find a specific mod. the theme is already formatted. a member would like to change the color of the board to match the topic they want to cover. the Forum is dark style, asked me if possible, a blue color for the screen.

And after thinking about it, I thought that the possibility of being able to change the color of certain areas without compromising the layout would be really useful.
I figured I would have some external method after examining the css possibilities and not finding a way to separate the formatting

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antechinus

Quote from: Edwar Colt on April 21, 2023, 08:37:52 PMI didn't find a specific mod. the theme is already formatted. a member would like to change the color of the board to match the topic they want to cover. the Forum is dark style, asked me if possible, a blue color for the screen.
Sure. Easy. Just needs a few lines of custom CSS added to the end of index.css (or any handy CSS file). Use the relevant board ID as the selector.

For example, take the 'News and Updates' board on this site (first one in the board index). If you want it to have a blue background ...
#board_1 {
    background: blue;
}

If you want the 'Organizational News and Updates' board to be green ...
#board_244 {
    background: green;
}

That's for the board index. If you want something similar on other pages, that can be done too.

Edwar Colt

What I managed to understand is that the boards follow a general pre-formatting of the .main_container.

if I reference a specific board in index.css it doesn't seem to know where to find it.

for example:

#board_11 {
    background: blue;
}

does not change anything on board 11

webtiryaki

Quote from: Edwar Colt on April 22, 2023, 06:04:56 AMWhat I managed to understand is that the boards follow a general pre-formatting of the .main_container.

if I reference a specific board in index.css it doesn't seem to know where to find it.

for example:

#board_11 {
    background: blue;
}

does not change anything on board 11


#board_11_children  {
    background: blue;
}

Edwar Colt

Now yes, the one that changed the internal frame was board_11_childboards

#board_11_childboards {
     background: #0267ba;
}

I think I understand how it works, I'm going to do some more tests and this was really a great discovery. Thanks again for everyone's help

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Kindred

Hmmmmmmmmmmm...  ok I guess I am incorrect.  ;)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

DeadMan...

Quote from: Kindred on April 22, 2023, 07:18:38 PMok I guess I am incorrect.

That can happen to us all at some point in time... LOL
I tell it how I see it... Don't like it? Hit Alt+F4!

Edwar Colt

And to close my question, the boards are even better with a background image.

#board_5_childboards {
    background-image: url(img.jpeg);
}

Advertisement: