• 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

Genesis eNews Horizontal & Mobile CSS Inside!

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 › Genesis eNews Horizontal & Mobile CSS Inside!

This topic is: not a support question

Tagged: code snippet, horizontal subscribe form

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 3 months ago by Erika.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 23, 2017 at 10:13 am #199872
    Erika
    Participant

    Hey guys! I'd like to share with you this great snippet of code I use for making the Genesis eNews plugin have a horizontal display on desktop view and then become mobile responsive. You will need to modify it based on your needs and where it is placed in your theme. Currently this code is structured for a First Name, Last Name and Email input box

    Normal CSS for horizontal display:
    .full-width-one .enews-widget {
    background-color: #fff;
    color: #000;
    padding: 20px;
    margin-top: -48px;
    margin-bottom: 20px;
    }

    .full-width-one .enews-widget input[type="submit"] {
    width: 10%;
    height: 50px;
    background-color: #000;
    color: #fff;
    }

    .full-width-one .enews-widget input {
    margin-bottom: 0px;
    margin-top: 6px;
    width: 17%;
    }

    .full-width-one .enews-widget p {
    float: left;
    width: 35%;
    margin-top: 18px;
    margin-bottom: 0;
    text-align: center;
    color: #000;
    letter-spacing: 2px;
    text-transform: uppercase;
    }

    @media only screen and (max-width: 1139px) {

    .full-width-one .enews-widget p {
    margin-top: 5px;
    }

    @media only screen and (max-width: 768px) {

    .full-width-one .enews-widget p {
    float: left;
    width: 100%;
    }

    .full-width-one .enews-widget input {
    width: 100%;
    margin-bottom: 10px;
    }

    .full-width-one .enews-widget input[type="submit"] {
    width: 100%;
    height: 53px;
    }

    .full-width-one .enews-widget p {
    float: left;
    width: 100%;
    }

    @media only screen and (max-width: 480px) {

    .full-width-one .enews-widget p {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    }

    .full-width-one .enews-widget input {
    width: 100%;
    margin-bottom: 10px;
    }

    .full-width-one .enews-widget input[type="submit"] {
    width: 100%;
    height: 53px;
    }

    January 23, 2017 at 12:19 pm #199881
    bluebird
    Member

    Thanks for sharing this Erika!

    January 23, 2017 at 4:37 pm #199896
    Erika
    Participant

    You're welcome 🙂

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

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