• 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

Can't wrap custom widget under header – Genesis Sample 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 › Can't wrap custom widget under header – Genesis Sample Theme

This topic is: resolved

Tagged: widget wrap

  • This topic has 3 replies, 2 voices, and was last updated 11 years ago by Atila.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 17, 2015 at 11:53 am #165912
    Atila
    Member

    Heya people.
    I have registered few new widget areas, and everything is cool except the beneth header widget. (or before content, if you will). I just can't wrap it up!

    Tried CSS, no effect. Tried adding genesis-structural-wraps, still, nothing happens.

    At the moment, here's my CSS for this widget:

    .custom-widget {
    background-color: #E1E1E1;
    overflow: hidden;
    border: 1px solid;
    margin-top: 15px;
    }
    
    .custom-widget .wrap {
    padding: 0 5%;
    }

    You can see the issue on my site, it's a opt-in form.

    http://wpvodic.com
    September 17, 2015 at 12:58 pm #165916
    Victor Font
    Moderator

    You trying to wrap the wrong element. Use this:

    #mc_embed_signup .wrap {
    background-color: #E1E1E1;
    overflow: hidden;
    border: 1px solid;
    margin-top: 15px;
    padding: 0 5%;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 17, 2015 at 1:16 pm #165923
    Atila
    Member

    Hay Victor... The problem is, when I add .wrap to the #mc_embed_signup, then there is no CSS for that element (not recognized). So .wrap is not wrapping it. Strange. Without .wrap, CSS works fine.

    September 17, 2015 at 1:52 pm #165925
    Atila
    Member

    Solved it. I have defined max-width to be the same as the max-width of the .wrap, and set margin to auto. 🙂 Thanks for help anyway!

    #mc_embed_signup {
    background-color: #E1E1E1;
    overflow: hidden;
    border: 1px solid;
    padding: 0 5%;
    max-width: 980px;
    margin: auto;
    }
  • 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

© 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