Advertisement:

Author Topic: Set each category on Index to have an IMAGE instead of TEXT.  (Read 729 times)

Offline eja8170

  • Newbie
  • *
  • Posts: 8
Set each category on Index to have an IMAGE instead of TEXT.
« on: January 31, 2018, 03:54:39 AM »
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.

Offline Pipke

  • Full Member
  • ***
  • Posts: 431
    • [NRNS]
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #1 on: January 31, 2018, 04:22:05 AM »
check this topic

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,268
  • Gender: Male
    • Kindred-999 on GitHub
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #2 on: January 31, 2018, 11:58:23 AM »
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)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Pipke

  • Full Member
  • ***
  • Posts: 431
    • [NRNS]
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #3 on: January 31, 2018, 12:42:26 PM »
no no no no no....   adding html to the category or board description is a **BAD** idea.


https://wiki.simplemachines.org/smf/Images_-_How_do_I_add_images_to_the_board%27s_description

thought this works the same for categories?

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,265
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #4 on: January 31, 2018, 12:47:32 PM »
that is outdated advise and we no longer recommend it for anywhere in SMF.

Offline eja8170

  • Newbie
  • *
  • Posts: 8
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #5 on: January 31, 2018, 02:41:49 PM »
So is there.. an actual solution that will give me what I want?

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,706
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • Lunarfall
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #6 on: January 31, 2018, 02:58:12 PM »
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.
T..s sig..t..e is ce..or.d by S.F T... w..ho.t an ex..an...on.

Past Project(s): [ ezPortal ]

Offline eja8170

  • Newbie
  • *
  • Posts: 8
Re: Set each category on Index to have an IMAGE instead of TEXT.
« Reply #7 on: January 31, 2018, 10:09:59 PM »
Well, I am able to do BOARDS with CSS code, but is there a CSS code for this ANYONE knows of?