Add Icon Before or After Entry Title

Th easiest way to add an icon before or after any title is to use Dashicons which are built into WordPress.

icon before after title

There’s 2 simple steps involved:

  1. Register Dashicons for front end usage.
  2. 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.

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.