Add Icons to Reply, Mark Unread, Recieve Alert buttons

in Tutorials on 24 Dec 2021

Add Icons to Reply, Mark Unread, Recieve Alert buttons

2.1 has a gazillion icons everywhere but they forgot to add nifty icons to Post buttons. The other day I saw a website that had a "Plus" icon next to their Reply button. I thought it was nice so I decided to add my own.

In this case, it's very simple. If you already use FontAwesome...

Open index.english.php and find:
$txt['reply'] = 'Reply';
Let's add the icon with color. Replace with:
$txt['reply'] = '<span style="color: #fa5f66;"><i class="fas fa-plus"></i></span> Reply';
Change the hex color #fa5f66; to suit your theme and if you want, do the same to the other buttons.

PixelfyStudio Team
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded PixelfyStudio in 2009 to which he is dedicated full time. |


Find the right theme for you. Browse through our gallery of expertly-crafted free SMF themes to find the perfect one for your needs.