• 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

Changing the background image for tablet view Magazine Theme

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 › Changing the background image for tablet view Magazine Theme

This topic is: resolved

Tagged: background, magazine theme, media queries, responsive

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by perplexed.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 22, 2013 at 3:59 pm #22296
    perplexed
    Member

    Hi, I'm trying to change the background image on the main content for tablet view. Here's the site: http://greenhousegraphix.com/crunchy/

    This is the CSS that contains the background image:

    .sidebar-content #content-sidebar-wrap {
    width: 960px; background: url(images/crunchy-background.jpg);
    }

    I made a second background image, and added this into the responsive section:

    /* Responsive Design
    ------------------------------------------------------------ */


    @media
    only screen and (max-width: 960px) {
    .sidebar-content #content-sidebar-wrap {
    background: url(images/crunchy-background-TABLET.jpg);
    }

    I even added it here to see if it changed:


    @media
    only screen and (max-width: 600px) {

    .sidebar-content #content-sidebar-wrap {
    background: url(images/crunchy-background-TABLET.jpg);
    }

     

    No luck on tablet or phone view. What am I doing wrong?

    Thanks.

     

    February 22, 2013 at 8:45 pm #22347
    ramseyp
    Member

    Hi there,

    If your CSS is exact, you're missing a closing bracket. This:
    @media only screen and (max-width: 960px) {
    .sidebar-content #content-sidebar-wrap {
    background: url(images/crunchy-background-TABLET.jpg);
    }

    Should be

    @media only screen and (max-width: 960px) {
    .sidebar-content #content-sidebar-wrap {
    background: url(images/crunchy-background-TABLET.jpg);
    }
    }

    Additionally, your layout appears to be "content-sidebar", so your CSS should read .content-sidebar #content-sidebar-wrap

    Cheers!

    Pat


    Community • Work • Conversations

    February 23, 2013 at 11:40 am #22415
    perplexed
    Member

    Thank you,

    The code was an excerpt, the closing bracket was down a ways. Thank you for pointing out my mistake in the class name. I'm not sure how I got the name reversed, and am sure I would have kept looking past it. Thanks again!

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