Th easiest way to add an icon before or after any title is to use Dashicons which are built into WordPress.
There’s 2 simple steps involved:
- Register Dashicons for front end usage.
- Add CSS to your child themes style.css file.
Display Dashicons On Front End
Simply copy this PHP code from the view raw link in the Gist and paste the code at the end of your child themes functions.php file using a code editor like Notepad++.
You can use this method to add an icon before or after any title including widget titles, page titles and your site title.