• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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++.

Register for full access


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

  • Add Clickable Icon Linked With Post Title

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems