• 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

Background color of sidebar + prevent google maps zoom when scrolling

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 › Background color of sidebar + prevent google maps zoom when scrolling

This topic is: resolved
  • This topic has 9 replies, 2 voices, and was last updated 9 years, 9 months ago by mort1m.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • March 28, 2016 at 8:13 am #182370
    mort1m
    Member

    I'm using the News Pro theme to set up a site for a friend. Among other things, I've run into two problems that I could not find the answer to using google...

    1. I want the whole background area in the sidebar (al the posts/pages) to be filled with a color. I changed the background color in the class of .sidebar .widget in style.css, but that only gives the widget (gravity forms) the background color I want. When the main content on the same post stretches longer than the widget, there is white space below the widget. I also wants that space to have the same background color. How is that possible to fix?

    2. On the same URL, I've embedded a google map in a hook using genesis simple hooks. Is it possible to prevent the map from starting to zoom/moving when the mouse reaches the map while scrolling? When on mobile this would be a big problem because the map fills the area where you would normally put your finger to scroll up or down. Now it just starts moving the map excerpt around, and you can't get either up or down on the page... "Activating" the map functions with a click/tap would be nice.

    Thanks in advance 🙂

    http://cracowholidays.com/wieliczka-salt-mine/
    April 2, 2016 at 11:12 am #182754
    Christoph
    Member

    Hi,

    it looks like you solved your problems.


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

    April 4, 2016 at 2:20 pm #182907
    mort1m
    Member

    Hi Christoph. The problem is not really solved. At the site, there is now background color only behind the widget, not the whole sidebar container (as the main content stretches longer down than the widget in the sidebar) Suggestions are still welcome 🙂

    April 4, 2016 at 5:06 pm #182925
    Christoph
    Member

    Hi,

    sorry I misunderstood.

    The sidebar only goes as far down as there are widgets in it.
    The space underneath "belongs" to .site-inner.

    You have to add a background-color to .site-inner (same color as the sidebar).
    and to prevent the content area to have the same color,
    add background-color: #fff; to .content.


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

    April 4, 2016 at 11:11 pm #182958
    mort1m
    Member

    Hi Christoph, thanks for taking your time. That did the trick 🙂 Much appreciated!

    April 4, 2016 at 11:29 pm #182960
    mort1m
    Member

    I can see that when the widget expands (its a gravity form with some conditional logic that makes the widget longer as you fill out the form), the main content area gets the background color of the sidebar too. I can live with that, but is there an easy solution to get rid of that too?

    April 5, 2016 at 7:59 am #182987
    Christoph
    Member

    Hmm... I don't see that.
    http://screencast.com/t/c1hy7AMpdwjB

    Or is it happening on a different page?
    Could you send a screenshot?


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

    April 5, 2016 at 8:38 am #182994
    mort1m
    Member

    Yes, on the other tour pages where there is not so much content. Like here:

    Czestochowa – Black Madonna Tour

    If you start filling out the gravity form in the side bar, it extends lower than the content area, probably revealing the ".site-inner" area.

    April 5, 2016 at 8:59 am #182995
    Christoph
    Member

    Ok... try adding this to the style.css

    .content-sidebar-wrap {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    }


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

    April 5, 2016 at 9:16 am #182996
    mort1m
    Member

    Excellent! Exactly what I was looking for. Thank you so much for solving my problem, Christoph 🙂

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

© 2026 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