• 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

Custom background image Genesis enews extended

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 › Custom background image Genesis enews extended

This topic is: resolved

Tagged: background image, enews, extended, genesis, widget

  • This topic has 16 replies, 2 voices, and was last updated 6 years, 11 months ago by wizz6113.
Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • April 22, 2016 at 5:10 am #184155
    wizz6113
    Member

    I am trying to add a background image, rather than a color, to the Genesis enews extended plugin. I created a png and uploaded vai ftp to images folder on the server. I can't seem to get it to render though but think this code is correct:

    .widget-above-content .enews-widget {
    color: #333;
    background-image: url('img/enews_background.png'); cover no-repeat;

    }

    Does anyone know what I am missing? I had to guess the png depth but the width is 1200px.

    Tnx.

    April 22, 2016 at 8:59 am #184171
    Christoph
    Member

    Hi,

    try adding
    background-color: transparent;

    http://prntscr.com/avh2wd


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 22, 2016 at 10:33 am #184179
    wizz6113
    Member

    Christoph, many thanks for this!

    Well, I've got rid of the color but not achieved an image showing! Not sure if I am missing something else now. I stuck background-color:transparent in two places in fact. Perhaps the image url code is wrong? I googled it and found several version of it. I uploaded the png to the Uploads>images.

    Any more thoughts? If you've time! Tnx so much.

    .widget-above-content {
    background-color: #transparent;
    background-image: url('img/enews_background.png'); cover no-repeat;
    margin: -20px auto 30px;
    padding: 30px 40px;
    width: 1200px;
    }

    .widget-above-content .enews-widget {
    background-color: #transparent;

    }

    April 22, 2016 at 10:39 am #184180
    Christoph
    Member

    You are welcome.

    I'd remove the # in front of transparent.

    When you inspect the element (Chrome Inspector or Firefox developer tools) and hover over the link, does it show the image or a message like "Image not found"?


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 22, 2016 at 10:55 am #184183
    wizz6113
    Member

    Hi Christoph,

    Errm, trying to inspect it but can't see a no show image alert. I do notice that the site containers are way below my image px size.

    I created a png 1200 px as that's what the css said. The subscribe box is in fact full width almost. The inspector says:

    Div site-container 705px

    and:

    div. widget-above-content .widget-area 625px

    Do you think my image size is wrong then? Hence no show?
    Thanks for your continued help!

    April 22, 2016 at 10:56 am #184184
    Christoph
    Member

    Are you developing locally or can you share a URL?


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 22, 2016 at 10:59 am #184185
    wizz6113
    Member

    Developing locally but it's the Glam theme and you'll see the enews widget full across the body on homepage.

    Tnx!

    April 22, 2016 at 11:10 am #184186
    Christoph
    Member

    Like this?
    http://prntscr.com/aviqgy


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 22, 2016 at 11:19 am #184187
    wizz6113
    Member

    Sorry Christoph, I got the wrong theme! It's Tickled Pink by Restored 316 who also does the Glam theme! Trying to find out how to get same view as you in Inspector as not familiar with it so well!

    April 22, 2016 at 11:23 am #184188
    Christoph
    Member

    No worries.

    Same principle:
    http://prntscr.com/aviwe7

    .widget-above-content {
        background: transparent url(/faithful/files/2015/07/DSCF9069-2500x800_c.jpg);
        margin: -20px auto 30px;
        padding: 30px 40px;
        width: 1200px;
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 22, 2016 at 11:33 am #184193
    wizz6113
    Member

    OK think i've found it. I am getting this: But I don't seem to see the same tool bar in inspector as you do, Not sure i am opening it right!

    Tnx.

    .widget-above-content {
    background-color: transparent;
    background-image: url('img/enews_background.png');
    margin: -20px auto 30px;
    padding: 30px 40px;
    width: 1200px;
    }

    April 22, 2016 at 11:38 am #184195
    Christoph
    Member

    Here's a quick screencast in Firefox. Chrome works almost identical.
    http://screencast.com/t/u47EbMCu

    Try adding a / in front of img
    ('/img/enews_background.png');


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 23, 2016 at 1:59 am #184241
    wizz6113
    Member

    OK, going round in circles on this one and huge thanks for your help Christoph. I've located the place using inspector and if I put a #hex for a color in, it show; if I replace the color hex with image code nothing show!

    So this works showing a color in the correct widget area - behind the enews:

    /* Widget Above Content
    ------------------------------------------------------ */

    .widget-above-content {
    background-color: #f87da9;
    margin: -20px auto 30px;
    padding: 30px 40px;
    width: 1200px;
    }

    .widget-above-content .enews-widget {
    background-color: transparent;

    }

    But if I replace that #hex with various variation on the css code for placing an image, I get nothing - just white.

    So clearly I've identified the correct widget but not sure what to do re the image I wish to replace color with. I made the image 1200px wide and 300px deep. I don't know if my depth guess would have an issue.

    Tnx for continued help!

    April 23, 2016 at 8:26 am #184253
    Christoph
    Member

    I don't think you need this: `
    .widget-above-content .enews-widget {
    background-color: transparent;

    }`

    As you see on the screenshots, this code works:

    .widget-above-content {
        background: transparent url(/faithful/files/2015/07/DSCF9069-2500x800_c.jpg);
        margin: -20px auto 30px;
        padding: 30px 40px;
        width: 1200px;
    }

    Just in case, make sure the property is background
    not background-color when you add the path to the image.

    Make sure that the path to your image is correct.
    If you are using an image on a different website, you have to include the full (URL) path.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 25, 2016 at 4:09 am #184360
    wizz6113
    Member

    I keep on trying it but it won't work! Do you think it's something to do with a wrap code?

    widget-above-content .widget-area .wrap

    Is that the bit I should be targeting?

    I have no way of knowing how big the image size should be. Perhaps my guess image is the wrong width / depth and therefore won't show?

    Really appreciate your ongoing help here. I am totally baffled as to why it's not simple! At this rate, it's easier to unhook the current widget, create a new one and style that.

    April 25, 2016 at 7:49 am #184374
    Christoph
    Member

    Unless you have done changes to related code, the css works.

    I doubt that it has anything to do with the dimensions of the image.

    Did you check that you can access the image with the path you are using?
    Did you try a different image (from a different URL)?

    You can always try to add the image to a different element and see if that works, e.g. the footer.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 25, 2016 at 1:24 pm #184399
    wizz6113
    Member

    Hi Christoph,

    Finally, I've managed to get it done - so huge thanks for all your help and patience! I think it was missing trailing slashes and " ..." !
    I can't tell you how helpful you've been. I just hope I'll be in a position before too long - with loads more learning under my belt- to do the same for others in the community!

    Cheers!

  • Author
    Posts
Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘Custom background image Genesis enews extended’ 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