• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

centering font awesome font icons

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › centering font awesome font icons

This topic is: resolved
  • This topic has 3 replies, 2 voices, and was last updated 12 years, 3 months ago by David Chu.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 13, 2013 at 12:19 am #72652
    dmcleod87
    Member

    hi all,

    i'm using the font awesome plugin for some social media icons but having a little trouble with the alignment. if you visit this page http://dev.dylanmcleod.net.au/us-explained/
    you will notice that the font icons aren't in the center of the circle. i've been using trial and error with editing the css but just can't figure it out. the html is below and links to the css are below that. hopefully someone can point me in the right direction!

    <div class="social-links-container">
    <ul class="aligncenter">
    <li><a class="social-links" href="mailto:[email protected]" target="_blank">[icon name=icon-envelope]</a></li>
    <li><a class="social-links" href="http://www.catwalkofwords.com" target="_blank">[icon name=icon-laptop]</a></li>
    <li><a class="social-links" href="http://www.facebook.com/catwalkofwords" target="_blank">[icon name=icon-facebook</a></li>
    <li><a class="social-links" href="https://twitter.com/CatwalkofWords" target="_blank">[icon name=icon-twitter]</a></li>
    <li><a class="social-links" href="http://instagram.com/catwalkofwords#" target="_blank">[icon name=icon-instagram]</a></li>
    </ul>
    </div>

    CSS - http://d.pr/f/gDqz
    Font-Awesome CSS - http://d.pr/f/nSxR

    http://dev.dylanmcleod.net.au/us-explained/
    November 13, 2013 at 9:27 am #72706
    David Chu
    Participant

    Hi,
    That's a very tricky CSS problem, just the stuff I enjoy. That's really tough to dial in. As you've seen, zillions of competing bits of code. The quickest result that looked decent that I found was to use the padding setting below instead of 10px:

    .page-id-2 .entry-content .social-links-container a.social-links {
    background-color: #000000 !important;
    border-bottom: 0 solid #FFFFFF !important;
    border-radius: 40px !important;
    color: #FFFFFF !important;
    font-size: 30px !important;
    padding: 14px 9px 10px 16px;
    text-align: center !important;
    }

    Not a perfect circle, but decent triage. There are several other bits of CSS code for those links, so the padding command may work elsewhere, too. Otherwise, hours more fiddling. Changing the font size of the link would allow more exactitude, but would require many more code changes, I think.

    Good luck,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    November 13, 2013 at 4:34 pm #72795
    dmcleod87
    Member

    thanks dave! way better than i had. will keep experimenting and see if i can improve.

    November 13, 2013 at 5:09 pm #72808
    David Chu
    Participant

    Sounds good! I might mess around with that FontAwesome stuff myself - I enjoy typography, and it looks fun. I never warmed to Cufon and other early ones - too much hassle and breakage of other site parts.


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble