• 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

how to reduce space between buttons

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 › how to reduce space between buttons

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 4 years, 11 months ago by David Borrink.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 4, 2018 at 3:52 pm #218656
    chikamiku
    Participant

    Hello THere,

    Could anyone please let me know how to reduce space between social icons on the top right of the following site? I am using refined pro theme. I wanted to show all four buttons in one line.

    https://www.hanaartsflower.hitechsol.net/

    Thanks and regards

    April 5, 2018 at 8:27 pm #218677
    David Borrink
    Participant

    Your items in that row of buttons are using this selector:

    .simple-social-icons ul li a

    and one of the settings is the padding which is at 9px. This setting has 9 pixels of padding on all four sides of each object. The objects touch each other. The only way you'll bring them closer together is to reduce the padding setting.

    If you want the height the vertical positioning to stay the same but bring them closer together horizontally, you'll need to use this padding setting:

    Instead of padding: 9x; you'll need to say padding: 9px 4px; (or anything smaller than 9px for the second number)

    which would keep your top and bottom puddings at 9px, but reduce the left and right paddings of each object, thus leaving a 8px gap between the icons instead of 18px (which is a result of having two padding areas of 9px touching each other; by doing 4px on each side, you have 8px between the icons. Get it?)

    April 6, 2018 at 8:54 pm #218717
    chikamiku
    Participant

    Hi David,

    Thank you for the detailed explanation. I believe your proposed solution should solve the problem. However, the problem is I do not see any padding area which has 9 pixels in the style.css file. How strange? The only code I can see in the selector area you mentioned is as follows.
    /* Simple Social Icons
    --------------------------------------------- */

    .announcement-widget .simple-social-icons ul li a,
    .announcement-widget .simple-social-icons ul li a:hover,
    .genesis-nav-menu .simple-social-icons ul li a,
    .genesis-nav-menu .simple-social-icons ul li a:hover {
    background: transparent !important;
    }

    .genesis-nav-menu .simple-social-icons ul li {
    margin: 0 0px 0px !important;
    }

    Unfortunately, I am, not able to find the related padding area. I am sorry to bother you again. But, will you please direct me to that as well?

    Thank you so much again.

    April 7, 2018 at 6:51 am #218731
    David Borrink
    Participant

    Your code might be in one of the plug-in's style sheets. When that happens, what I do is put the overriding code in the "Additional Code" area in the dashboard Customizer.

    .simple-social-icons ul li a, .simple-social-icons ul li a:hover, .simple-social-icons ul li a:focus {
    padding: 9px 4px;
    }

    See if that works. Then edit the second number to get the spacing the way you like it.

  • 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

© 2023 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