[Resolved] Reducing space between social icons in menu?

Home Forums Support [Resolved] Reducing space between social icons in menu?

Home Forums Support Reducing space between social icons in menu?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #347242
    Jacks McNamara

    Hello – I used the font-awesome method to install icons in my menu. (Each icon is added as an individual menu item with an image tag.) Is there a way to reduce the padding between those social icons, while leaving the rest of the menu items in the normal spacing? I just want the social icons to appear like a little block together. Can I target them individually somehow in the css and convince them to be closer together?

    The site I’m working on is http://77.104.138.137/~cookwit3/
    Currently under construction, I’ll take the maintenance mode off for a little bit in case you have time to take a peek.

    #347274
    Leo
    Staff
    Customer Support

    Hi there,

    Try giving the icons a custom class in the menu: icon-padding
    https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes

    Then use this CSS to target:

    .main-navigation .main-nav ul li.icon-padding a {
        padding-left: 10px;
        padding-right: 10px;
    }

    Let me know.

    #347292
    Jacks McNamara

    That worked perfectly, thank you so much!

    #347293
    Leo
    Staff
    Customer Support

    No problem!

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