• 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

Decrease padding or margin between widget title and element

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 › Decrease padding or margin between widget title and element

This topic is: resolved

Tagged: Margin, widget title

  • This topic has 6 replies, 2 voices, and was last updated 11 years, 10 months ago by Porter.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 12, 2014 at 10:06 am #118410
    restmin
    Member

    I am trying to decrease the spacing/padding/margin between the HOME PAGE widget titles and the element below it. The screenshot I have attached shows the spot exactly. I cannot find the correct CSS to fix it. thanks!

    screen shot of spacing I am trying to adjust

    http://invisibleillnessweek.com
    August 12, 2014 at 10:11 am #118411
    Porter
    Participant

    It appears you're editing the site right now (that side bar piece is shown way below on the left side for me). If you return it to it's normal state, I can likely solve this for you.


    Buy me a beer? | Try DigitalOcean VPS Hosting

    August 12, 2014 at 10:22 am #118414
    restmin
    Member

    Thanks, the widget IS where I want it... I also had someone put in some extra widgets. The layout is fine on the homepage.

    I just used this particular widget as an example.

    I'd like the spacing decreased on all homepage widget titles between the title and the element.

    The pink box in my screen shot isn't meant for layout, just to clarify. I was just pulling it out to show the before (and hopefully after) of spacing between the widget title and widget element.

    Sorry if I am redundant, just trying to make sure it is clear 🙂

    August 12, 2014 at 10:26 am #118417
    Porter
    Participant

    I can't figure out how to get it snug, but I can reduce it significantly. In your style.css, search for:

    margin-bottom: 32px;

    Change that to 0px; (or just remove that line) for the biggest decrease in space, and anything between 0 and 32 to adjust it compared to where it is now. That piece of css should appear near .widget, or similarly related classes.


    Buy me a beer? | Try DigitalOcean VPS Hosting

    August 12, 2014 at 12:41 pm #118445
    restmin
    Member

    I played around with this a bit, but there are a lot of
    margin-bottom: 32

    It does work, but it decreases the title of the widget with the widget above it... which is the opposite of what I need unfortunately. I am trying to decrease the size... in a widget... between the widget's title and the widget's content.

    It seems adjusting the margin-bottom just decreases the size between the widget title and the widget content in the widget ABOVE it.

    Or maybe I am doing something wrong? (very likely!)

    August 12, 2014 at 12:55 pm #118449
    restmin
    Member

    My fault! There was a text widget and then a featured post widget, rather than naming the featured widget. Ugh! sorry!!

    August 12, 2014 at 1:15 pm #118450
    Porter
    Participant

    No problem 🙂

    Is your new spacing sufficient, or are you trying to get it even tighter? I noticed the title itself is taking up more space than it visually shows. If you hover over the margin / padding / content graph on the bottom of Chrome's inspect element tool, it shows the title as being nearly double the height it's using, which I don't know how to alter.


    Buy me a beer? | Try DigitalOcean VPS Hosting

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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