• 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 do I change the form width?

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 do I change the form width?

This topic is: not resolved
  • This topic has 6 replies, 2 voices, and was last updated 8 years, 11 months ago by Marcy.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • February 5, 2014 at 9:57 am #88767
    ryans
    Member

    I know this is a simple thing to do, I just don't know how to do it!

    Take a quick look at http://www.RyanShell.com. Specifically, look at the email box down by the footer. Notice how the email box and subscribe button are really wide? How do I reduce the size? How and where to do so would be a massive help.

    Sorry for such a rookie question.

    http://RyanShell.com
    February 5, 2014 at 11:31 am #88788
    Marcy
    Participant

    In your style.css line 323 is this section of code:

    input,
    select,
    textarea {
    	background-color: #fff;
    	border: 1px solid #ddd;
    	color: #000;
    	font-size: 20px;
    	font-weight: 400;
    	padding: 16px;
    	width: 100%;
    }

    It is the width: 100%; that makes the form input so wide.

    You will want to find the section for the Enews Extended plugin, near line 783.
    Find this CSS:

    .enews-widget input {
    	font-size: 18px;
    	margin-bottom: 20px;
    }

    And add a smaller width like
    width: 50%;
    so it looks like this

    .enews-widget input {
    	font-size: 18px;
    	margin-bottom: 20px;
            width: 50%;
    }

    Then in one of the smaller @media sections, like below - @media only screen and (max-width: 480px) {
    you will want to add this to make it full width on phones:

    ` .enews-widget input {
    width: 100%;
    }`


    Marcy | Amethyst Website Design | Twitter

    February 5, 2014 at 12:12 pm #88799
    ryans
    Member

    Marcy, thank you so much. That worked perfect!

    One catch though. The edit made the sign up form I've included in the after post section to be left justified. See an example here, http://www.ryanshell.com/one-of-my-worst-pr-nightmares/. Any idea how I can get that section centered?

    February 5, 2014 at 12:13 pm #88800
    ryans
    Member

    Shucks, I just noticed that the change also shrunk the sign up box in the sidebar. Can that be fixed as well?

    February 5, 2014 at 12:51 pm #88806
    Marcy
    Participant

    Sorry about that; I meant to look to see if you used the enews plugin elsewhere.

    So try this, so it only changes width on the home page. Note that I returned the first code section to what the default theme had.

    .enews-widget input {
    	font-size: 18px;
    	margin-bottom: 20px;
    }
    .home .enews-widget input {
           width: 50%;
    }

    Then in the media query section you would just use:

    .home .enews-widget input {
           width: 100%;
    }

    Marcy | Amethyst Website Design | Twitter

    February 5, 2014 at 2:26 pm #88820
    ryans
    Member

    Marcy,

    I made those changes, but it doesn't seem to be impacting the sidebar. Any ideas?

    February 5, 2014 at 5:05 pm #88847
    Marcy
    Participant

    I still see this:

    .enews-widget input {
        font-size: 18px;
        margin-bottom: 20px;
        width: 50%;
    }

    You have to find that in your style.css (I see it on line 794) and remove that width: 50%, so that it is

    .enews-widget input {
        font-size: 18px;
        margin-bottom: 20px;
    }

    and right below that add
    .home .enews-widget input {
    width: 50%;
    }


    Marcy | Amethyst Website Design | Twitter

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

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