Jump to content
Sign in to follow this  
IPBDesign

FontAwesome Forum Icons

Recommended Posts

IPBDesign    122
IPBDesign

FontAwesome Forum Icons

Getting your Forum IDs

For this to work at all you need to know the forum ID's you want to change. You can find these by right clicking them and checking the data-forumid attribute:

Hidden Content

    Give reaction to this post to see the hidden content.

You can also see the forum ID if you edit the forum in the admin cp, at the end of the url:

Please login or register to see this image.

/monthly_2016_07/2.png.68a7087fa001fb1fa6f29c0421c6a7a6.png">

Adding some template code

Go to the theme and open up the following template: forums > front > index > forumRow

3.png

At the end of every instance of a span with the class ipsItemStatus:

Please login or register to see this code.

You will need to add this little bit of code before the closing ">".

Please login or register to see this code.

On the default themes that's line 12, 16, 20 and 28. It will look something like this:

Hidden Content

    Give reaction to this post to see the hidden content.

Adding the CSS

This is where you'll need your forum ID numbers. This is also how i implemented them into the WebFlake CSS. Open your custom.css and add the following code:

Please login or register to see this code.

Remember the forum IDs from earlier? You'll need to change the numbers here with your own forum IDs. You can copy/paste these lines for every forum you have, the reason i add the category names as comments is because in the future if stuff changes i won't lose track of which category is which.

Change the "\f015" part with whatever FontAwesome icon you want. Go to

Hidden Content

    Give reaction to this post to see the hidden content.
and click the icon you want for your forum, for example "home". Copy the "unicode" part and replace it in your css. Keep the "\" backslash in there.

5.png

If you have forum icons set as images currently, you will need to remove them.

And that's it, you will now have customizable forum icons for your forums.

  • Upvote 2

Share this post


Link to post
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×