• I’m playing with making a list of categories that, rather than the list is certain images, like ‘category-1.jpg’ etc. Would that be possible? I know it’s not really best practice, but this is an artist’s website lol

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is probably best handled using CSS to insert image backgrounds and then push the text off screen. But you’d need to use get_categories() and run a foreach loop with some if/else, or switch, statements to insert the necessary ids/classes.

    Do-able but not simple unless you’re comfortable with PHP and CSS.

    https://codex.www.ads-software.com/Function_Reference/get_categories

    Thread Starter Skeary

    (@skeary)

    thanks for the comments ??
    that might be a bit beyond my ken right now.. hmm.

    i could, though to be reallylame, just put straight up xhtml in my sidebar.php instead of the php get_categories function right? i know, i know. but that seems like the quickest solution right now.. not too much chance of categories changing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘image/buttons for category list?’ is closed to new replies.