News:

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

Main Menu

Set each category on Index to have an IMAGE instead of TEXT.

Started by eja8170, January 31, 2018, 03:54:39 AM

Previous topic - Next topic

eja8170

Hi! I am trying to get the category on my forum index to have an image (which will have text on it already) to replace the words for the category (as they don't really match what I'm trying to do with the rest of my site's design. I am absolutely baffled as to how to code this without messing something else up. Please, if anyone has a solution please help.

Again, this would be for a category image, NOT a board.

Pipke

"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Kindred

no no no no no....   adding html to the category or board description is a **BAD** idea.

There is a description running about on how to do something similar with CSS. do that. Do not use HTML in the description (that is not allowed in 2.1 anyway)
Сл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."

Pipke

"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Illori

that is outdated advise and we no longer recommend it for anywhere in SMF.

eja8170

So is there.. an actual solution that will give me what I want?

Antes

You can do it with simple tricks but problem is Curve (SMF2.0's default theme) using images to show most of the graphic output which limits lots of things. Like you can't use images bigger than 31px (height) on category headers unless you go ahead and change cat_bar / catbg into CSS based headers.

eja8170

Well, I am able to do BOARDS with CSS code, but is there a CSS code for this ANYONE knows of?

Advertisement: