• 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

enews widget before header styling

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 › enews widget before header styling

This topic is: resolved

Tagged: before header, eNews Widget

  • This topic has 12 replies, 2 voices, and was last updated 7 years, 9 months ago by Davinder Singh Kainth.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • August 14, 2015 at 3:11 pm #162416
    masonjarsalads
    Member

    Hi there, will someone tell me how I can get the text, email address box and submit button inline properly. I am using the enews widget before the header.

    Thank you, thank you!

    http://www.masonjarsalads.com/

    http://www.masonjarsalads.com/
    August 16, 2015 at 8:58 am #162514
    Davinder Singh Kainth
    Member

    I guess you got that working. If still issue, update thread.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    August 16, 2015 at 11:07 am #162536
    masonjarsalads
    Member

    No, I haven't figured it out. I want the text to be closer to the email address box and the entire thing to be centered. There also needs to be a little more space between the address box and the submit button.

    Thanks.

    August 17, 2015 at 9:18 am #162615
    Davinder Singh Kainth
    Member

    For space between address box and submit button. Look for following code;

    .before-header .enews-widget input {
    	border: 0;
    	display: inline;
    	float: center;
    	margin: 0;
    	width: 30%;
    }

    Change this to...

    .before-header .enews-widget input {
    	border: 0;
    	display: inline;
    	float: center;
    	margin: 0 10px 0 0;
    	width: 30%;
    }

    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    August 17, 2015 at 9:22 am #162616
    Davinder Singh Kainth
    Member

    For center align things a little more.

    Change

    .before-header .enews-widget .widgettitle {
    	font-size: 20px;
    }

    to

    `.before-header .enews-widget .widgettitle {
    font-size: 20px;
    width: 40%;
    }


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    August 19, 2015 at 8:29 am #162833
    masonjarsalads
    Member

    Thanks David, how can I reduce the space between the text "want fresh new recipes" and the email address box?

    Appreciate it,

    Nicole

    August 19, 2015 at 9:18 am #162841
    Davinder Singh Kainth
    Member

    One way is this...

    Change following code

    before-header .enews-widget .widgettitle {
        font-size: 20px;
        width: 40%;
    }

    to...

    before-header .enews-widget .widgettitle {
        font-size: 20px;
        width: 40%;
        text-align: right;
    }

    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    August 19, 2015 at 9:19 am #162843
    Davinder Singh Kainth
    Member

    Second way... to make whole thing more compact. Don't do above change, if you want to follow this method.

    Change

    .enews-widget {
        background: #f5f5f5;
        color: #010101;
        text-align: center;
    }

    to...

    .enews-widget {
        background: #f5f5f5;
        color: #010101;
        text-align: center;
        width: 50%;
    }

    Also, remember to change width to 100% for smaller views tablet and mobile.


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    August 19, 2015 at 9:36 am #162846
    masonjarsalads
    Member

    Thanks, I used the first way and changed the email box and input to float left...do I have to make adjustments for mobile in that case too?

    August 19, 2015 at 9:42 am #162847
    masonjarsalads
    Member

    Now the text is to the right on mobile devices...

    August 22, 2015 at 6:53 am #163131
    Davinder Singh Kainth
    Member

    To fix text on mobile.

    Change this code

    	.before-header .enews-widget .widgettitle,
    	.before-header .enews-widget p,
    	.before-header .enews-widget #subscribe,
    	.before-header .enews-widget input,
    	.before-header .enews-widget input[type="submit"] {
    		display: block;
    		float: none;
    		margin: 0 0 10px;
    		width: 100%;
    	}
    

    to....

    	.before-header .enews-widget .widgettitle,
    	.before-header .enews-widget p,
    	.before-header .enews-widget #subscribe,
    	.before-header .enews-widget input,
    	.before-header .enews-widget input[type="submit"] {
    		display: block;
    		float: none;
    		margin: 0 0 10px;
    		width: 100%;
                    text-align: center;
    	}
    

    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    August 22, 2015 at 5:15 pm #163201
    masonjarsalads
    Member

    Awesome, thank you David. That worked.

    August 23, 2015 at 8:56 am #163225
    Davinder Singh Kainth
    Member

    Welcome!


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘enews widget before header styling’ is closed to new 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