• 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

Widgets: title with background and no padding but retain content padding

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 › Widgets: title with background and no padding but retain content padding

This topic is: not resolved

Tagged: css, widgets

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 2 months ago by emasai.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 29, 2016 at 9:49 am #192243
    pobrien
    Member

    Hi there, I'm using the sample child theme and I currently am trying to get the widgets to have no padding around the title, but retain the padding around the content.

    What I have in the image below is reflected with this:

    .sidebar .widget {
        padding: 20px;
    }

    I can't seem to find a way to have the title with no padding, but padding within the content *for every widget* (text, blogroll, etc).

    Or do I have to apply this to each individual widget that I have? Anyone have any ideas?

    Thanks for the help

    August 29, 2016 at 10:27 am #192247
    emasai
    Participant

    Target the title using .sidebar .widget-title and for the content, target the .sidebar ul tag if it is a menu like you show.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    August 29, 2016 at 10:28 am #192248
    pobrien
    Member

    So no way to blanket all widgets without having to specify ul tags? Not all my widgets are ul.

    I could remove the padding, and apply content padding to each one - just looking for a more programmatic approach to all

    August 29, 2016 at 10:37 am #192249
    emasai
    Participant

    That will blanket all the titles in the sidebar widgets and the ul tags, but if you have other content p tags, you would have to target those as well.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

  • 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

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