[For 1.8] Replace PM icons with Font Awesome
#1
Ignore step 1 if you are already linking to Font Awesome CSS, although you need to make sure that it's the latest version (4.7.0 at this time) as these icons are new.

Step 1:

In headerinclude add above {$stylesheets}:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

Step 2:

Add to usercp.css


.x_new_pm:before {font-family:FontAwesome; content: "\f003"; font-size:16px}
.x_old_pm:before {font-family:FontAwesome; content: "\f2b7"; font-size:16px}
.x_fw_pm:before {font-family:FontAwesome; content: "\f2b7"; position:absolute; font-size:16px}
.x_fw_pm:after {font-family:FontAwesome; content: "\f178"; position:relative; top:11px; left:5px; color:#5b94c5; font-size:16px}
.x_re_pm:before {font-family:FontAwesome; content: "\f2b7"; position:absolute; font-size:16px}
.x_re_pm:after {font-family:FontAwesome; content: "\f177"; position:relative; top:11px; right:5px; color:#663096; font-size:16px}
 
Step 3:

In private_messagebit and private_search_messagebit templates:

Find

<img src="{$theme['imgdir']}/{$msgstatus}.png" alt="{$msgalt}" title="{$msgalt}" />

and replace with:

<span class="x_{$msgstatus}" title="{$msgalt}"></span>

Before:

[Image: before.png]

After:

[Image: after.png]
What goes around comes around
Reply


Messages In This Thread
Replace PM icons with Font Awesome - by Ashley1 - 2016-11-26, 07:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)