• 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

Add Image ontop of Enews Widget – Sidebar

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 › Add Image ontop of Enews Widget – Sidebar

This topic is: not resolved

Tagged: enews, SignUpform

  • This topic has 10 replies, 2 voices, and was last updated 7 years, 10 months ago by nabaleka.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • May 25, 2015 at 1:41 pm #153576
    nabaleka
    Member

    Hello, this is my first post in this forum, please check the Social Triggers blog, You will see on the right sidebar there is a subscription form with his image on top. I would like to add that to my Genesis Enews Extended wiglet too.

    I have managed the following code found it online but it is just placing the image in the background.

    
    .sidebar .enews-widget {
    	-moz-box-shadow: 0 0 5px #999;
    	-webkit-box-shadow: 0 0 5px #999;
    	background: #333;
            background-image: url(/wp-content/uploads/2015/05/image-back.jpg);
    	background-position: center, top;
    	background-repeat: no-repeat;
    	border: 3px solid #fff;
    	border-radius: 10px;
    	box-shadow: 0 0 5px #999;
    	margin-top: 40px;
    	padding: 25px;
    	width: 100%;
    }
    

    Would someone help me please. Thanks

    May 25, 2015 at 10:04 pm #153591
    Marcy
    Participant

    Can you post a link to your site, so we can how it's working?

    I would try using : before, something like this, but I would also add a height: for the image or min-height:

    .sidebar .enews-widget:before {
    	background: #333;
            background-image: url(/wp-content/uploads/2015/05/image-back.jpg);
    	background-position: center, top;
    	background-repeat: no-repeat;
    	border: 3px solid #fff;
    	border-radius: 10px;
    	box-shadow: 0 0 5px #999;
    	margin-top: 40px;
    	padding: 25px;
    	width: 100%;
    }

    Marcy | Amethyst Website Design | Twitter

    May 25, 2015 at 11:12 pm #153596
    nabaleka
    Member

    Thanks Marcy for the help, I have added :before and this is how it appears (check the link: http://www.workonlinekenya.com/iwriter-review/)

    the ideal look should look like (http://socialtriggers.com/email-signup-forms-build-list/) the right signup form widget.

    May 26, 2015 at 10:58 am #153663
    Marcy
    Participant

    There is no image code on your .enews widget on that page.


    Marcy | Amethyst Website Design | Twitter

    May 26, 2015 at 11:10 am #153664
    nabaleka
    Member

    I had removed the code, now I have it back

    May 26, 2015 at 11:57 am #153674
    Marcy
    Participant

    Try this
    .sidebar .enews-widget:before {
    -moz-box-shadow: 0 0 5px #999;
    -webkit-box-shadow: 0 0 5px #999;
    background: #333;
    background-image: url(/wp-content/uploads/2015/05/leadgenforsheeroh.jpg);
    background-position: contain;
    background-repeat: no-repeat;
    border: 3px solid #fff;
    border-radius: 10px;
    box-shadow: 0 0 5px #999;
    display: block;
    margin: 0 auto 20px auto;
    width: 100%;
    min-height: 370px;
    }


    Marcy | Amethyst Website Design | Twitter

    May 26, 2015 at 12:06 pm #153675
    nabaleka
    Member

    Amazing, it now displays well, thanks a lot Marcy, I have been struggling with this for sometime.
    Is it possible to have the image display outside the box, like http://socialtriggers.com/email-signup-forms-build-list/ instead of the way it is now.

    May 26, 2015 at 12:09 pm #153676
    Marcy
    Participant

    You can also add the image directly to the enews widget and not use background image.
    Use this in the "Text before Form"

    <img src="/wp-content/uploads/2015/05/leadgenforsheeroh.jpg">
    Join Work Online Kenya by submitting your details to receive Updates.

    If you want it before the widget title, then don't use a widget title and use this instead:

    <img src="/wp-content/uploads/2015/05/leadgenforsheeroh.jpg">
    
    <h4 class="widget-title widgettitle">SUBSCRIBE FOR UPDATES</h4>
    Join Work Online Kenya by submitting your details to receive Updates.

    Marcy | Amethyst Website Design | Twitter

    May 26, 2015 at 12:12 pm #153678
    Marcy
    Participant

    For before, you would need to use
    #enews-ext-2:before
    instead of
    .sidebar .enews-widget:before


    Marcy | Amethyst Website Design | Twitter

    May 26, 2015 at 12:20 pm #153681
    nabaleka
    Member

    Great this works `<img src="/wp-content/uploads/2015/05/leadgenforsheeroh.jpg">
    Join Work Online Kenya by submitting your details to receive Updates.`

    but when I use the second code on the title it does not work.

    How about changing the background color to white instead of the dark image? will that be effective

    May 26, 2015 at 12:29 pm #153686
    nabaleka
    Member

    There is no change when I use this

    #enews-ext-2:before
    instead of
    .sidebar .enews-widget:before
  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 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