• 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

Change container image but keep wrap image

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 › Change container image but keep wrap image

This topic is: not resolved

Tagged: background, container, css, wrap

  • This topic has 5 replies, 2 voices, and was last updated 9 years, 6 months ago by trbdesign.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 17, 2014 at 9:47 am #95304
    trbdesign
    Member

    Hi,

    I'm working on a project where I want to have a tan background image in the container but keep the white image in the wrap for readability.

    Does anyone know where to find a selector that controls the outside container?

    Thanks in advance

    Toni

    http://asc.ignitrodev.com/blog/
    March 17, 2014 at 12:18 pm #95340
    trbdesign
    Member

    I think this has a good example of what I'm trying to do:

    http://baristamommy.com/

    I want to have an outside image like the flowered part while still keeping the inside wrap light and readable.

    I have this on line 88 of my css code, but it's not working.

    body {
    background: url(images/bg-texture.png) repeat scroll 0 0;
    line-height: 1;
    }

    Anyone have any ideas?

    Thanks in advance,

    Toni

    March 17, 2014 at 1:44 pm #95371
    emasai
    Participant

    #wrap line 371 in style.css - change out the background image for the colour you want.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    March 17, 2014 at 4:24 pm #95385
    trbdesign
    Member

    Thanks, but when I changed line #371, they're now both the border image. I want the border image which is tan on the outside and the white image in the wrap.

    Where can I set the background image for the container (before the wrap is declared)?

    March 17, 2014 at 5:08 pm #95391
    emasai
    Participant

    I'm not really following exactly what you want. There are several wraps one is ID #wrap which I'm guessing you are calling container. The other wraps are classes .wrap and are structural, based on whichever main block they belong to. If you want your screen width background to remain the tan colour image and the inner part (where the text is) to change to white, then you need to edit #wrap in style.css file, remove the background image and replace with background: #FFF;

    You will then have to change margins and paddings because this template was not built to have a different for the background and the wrap.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    March 18, 2014 at 4:21 am #95426
    trbdesign
    Member

    I understand now. I was trying to use an image for the background and another one for the wrap. Thanks for your help.

    Toni

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