• 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

Widget Margin Issue On Education Theme

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 › Widget Margin Issue On Education Theme

This topic is: not resolved
  • This topic has 7 replies, 4 voices, and was last updated 13 years, 6 months ago by fredyyv.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • December 6, 2012 at 7:31 pm #3642
    fredyyv
    Member

    I need to know how to modify my css files to make my sidebar widget all have equal margins on each side. details below. thanks.

    Image of sidebar margin issue:
    http://screencast.com/t/lxqzDiWml

    Website where sidebar is location:
    http://localorganicranking.com/occ/

    December 6, 2012 at 10:58 pm #3667
    AnitaC
    Keymaster

    That's under your .sidebar in CSS. If you only want to change the left and right - I put this and change the number to whatever you want it to be.

    margin-left: 15px

    margin-right 15px

    Someone else may have a better way to do it.


    Need help with customization or troubleshooting? Reach out to me.

    December 7, 2012 at 9:04 pm #3816
    fredyyv
    Member

    I'm sorry, I meant to say that I wanted the bottom to match the width of the left, top and right right edges. The bottom of the image has a greater width than all the other sides. I want to make all sides equal but not sure with css code to modify.

    December 8, 2012 at 10:07 pm #3945
    Holli
    Member

    You've got a class applied to the image in the sidebar of alignnone which has a margin of 25px on the bottom. You can add this line of code at the bottom of your CSS to target JUST that image in the sidebar:

    #sidebar-alt img.alignnone {
    margin: 0;
    }

    I tested it in firebug, and that fixed it.

     

    December 9, 2012 at 5:10 am #3956
    emzo
    Member

    I suspect you may have the "Automatically add paragraphs" checkbox selected for these sidebar widgets. Go to your admin and take a look at the text widgets in this sidebar and see if that's the case.

    On line 1418 in your style.css file, you'll see a rule for styling <p> tags within the sidebar, which adds a 15px bottom margin.

    .sidebar p {
        font-size: inherit;
        text-shadow: #fff 1px 1px;
        margin-bottom: 15px;
    }
    December 9, 2012 at 5:18 am #3959
    emzo
    Member

    If this is not the case, you can add a CSS rule to override the bottom margin of the <p> tag within this particular sidebar. Add the following line towards the end of your style.css

    .widget_black_studio_tinymce p { margin-bottom: 0 }
    December 9, 2012 at 5:26 am #3960
    emzo
    Member

    Sorry, just realised you're using the Black Studio TinyMCE Widget. You'll probably want to use this CSS instead:

    .widget_black_studio_tinymce p:last-child { margin-bottom: 0 }

    This will allow you to have multiple paragraphs in your widgets should you need to, and only removes the bottom margin from the very last paragraph in each TinyMCE Widget.

    December 9, 2012 at 9:25 am #4006
    fredyyv
    Member

    that fixed it. thanks. you guys are awesome.

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