xxxxxxxxxx
<!-- Assuming you have included Font Awesome CSS -->
<span class="fa fa-heart" id="my-icon"></span>
<!-- CSS -->
<style>
/* Select the icon by class or ID */
.fa-heart {
color: red; /* Change the color to red */
}
#my-icon {
color: blue; /* Change the color to blue */
}
</style>
xxxxxxxxxx
<a href="/users/edit"><i class="fa fa-cog" style="color:black !important;"></i> Edit profile</a>
xxxxxxxxxx
<a href="/users/edit"><i class="icon-cog"></i> Edit profile</a>