• 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 modify spacing between widget areas in eleven40 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 › How to modify spacing between widget areas in eleven40 theme?

This topic is: not resolved

Tagged: Eleven40, widget areas css

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 4 months ago by biswajit.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 26, 2013 at 8:50 am #14991
    biswajit
    Member

    Hi there,

    I am using eleven40 theme. I have two widget areas for displaying the following after single posts

    1) Newsletters:  Implemented using Brian's tutorial  http://www.briangardner.com/email-newsletter-signup-box/

    2) Related posts : YARPP plugin

    Now the newsletter widget  area is getting overlapped with post content area. Also, there is very little spacing between YARPP widget area and newsletter widget area. I want to provide spacing between these widget areas .

    My website url is http://www.techpoka.com/where-and-how-to-place-seo-keywords/

    Any help would be greatly appreciated !!

    Biswajit

     

     

    January 26, 2013 at 8:54 am #14994
    Jon Bellah
    Member

    Find the selector that currently reads:

    .enews-widget {
    background-color: #e7e7e7;
    border: 9px solid #ddd;
    margin: 0 10%;
    }
    

    And change it to read:

    .enews-widget {
    background-color: #e7e7e7;
    border: 9px solid #ddd;
    margin: 48px 10%;
    margin: 3rem 10%;
    }
    

    Follow me on the Twitters at @JonBellah. I blog about web design, development and a lot about Genesis at CSSForge.com

    January 26, 2013 at 10:01 am #15009
    biswajit
    Member

    HI Jon,

    Thanks a lot . This worked.

    I have few more  doubts .

    I have registered e-news widget area after post using this below code .

    /** Register newsletter widget area */
    genesis_register_sidebar( array(
    'id'    => 'newsletter',
    'name'    => __( 'Newsletter', 'custom-theme' ),
    'description'    => __( 'This is the newsletter section.', 'custom-theme' ),
    ) );

    /** Add the newsletter widget after the post content */
    add_action( 'genesis_after_post_content', 'custom_add_newsletter_box' );
    function custom_add_newsletter_box() {
    if ( is_singular( 'post' ) )
    genesis_widget_area( 'newsletter', array(
    'before' => '<div id="enews widget-area">',
    ) );
    }

    What does div id "enews widget area " refer  to ? Does this div already exist in genesis  theme or i am creating it new using the code above ? Also what does "array" and " before"  refer to in the above code ?

    How can i align  newsletter area with post content area and  related posts area so that all fill equal widths ? If you see my page, right now the newsletter area is  of unequal widths and looking unaligned ?

    Thanks again  .

    January 26, 2013 at 10:23 am #15016
    biswajit
    Member

    One more question Jon,

    Why are you using two "margin" in the below code?

    .enews-widget {
    background-color: #e7e7e7;
    border: 9px solid #ddd;
    margin: 48px 10%;
    margin: 3rem 10%;
    }

    Is one for top margin and the other for below margin ? Also what is the difference between px and rem?
    I am new to css, so lot of questions 🙂  But its a good learning experience working with genesis.

    Thanks,
    Biswajit

  • 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