[Resolved] How to place (prefix) a font awesome 5 icon before a post title using css

Home Forums Support [Resolved] How to place (prefix) a font awesome 5 icon before a post title using css

Home Forums Support How to place (prefix) a font awesome 5 icon before a post title using css

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #743568
    Pete

    Just thought I’d share this…
    How to place a fontawesome 5 icon before a post title using css

    h1.page-title::before {
       font-family: "Font Awesome 5 Free";
       content: "\f091";
       display: inline-block;
       padding-right: 1px;
       vertical-align: middle;
       font-weight: 900;
    }

    https://stackoverflow.com/questions/20782368/use-font-awesome-icon-as-css-content

    #743637
    David
    Staff
    Customer Support

    Hi there,

    yes the FA 5 family names get awfully convoluted 🙂 Really appreciate you sharing this and i am sure others will find it helpful. Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.