• 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

Moving .content-sidebar-wrap down in specific media query

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 › Moving .content-sidebar-wrap down in specific media query

This topic is: not resolved

Tagged: move .content-sidebar-wrap down to clear menu

  • This topic has 5 replies, 2 voices, and was last updated 6 years, 9 months ago by Christoph.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • June 2, 2016 at 1:20 pm #186795
    asbilly92
    Participant

    Having frustrations with this, at certain break-point my menu changes to two lines (1335px ), at that point I need to move the .content-sidebar-wrap down and I've not been able to ...

    I tried adding a custom / extra break-point like below but it's not working... any ideas??

    * I am using a body class of .franchise just fyi; I do NOT want this to happen on the other pages just this one....

    @media only screen and (max-width:  1336px) {
    
    .franchise .content-sidebar-wrap {margin-top:50px;}
    	
    }
    

    Maybe there's a better way to solve it??

    https://www.spacemanagement.com/franchise-opportunities/
    June 2, 2016 at 1:43 pm #186802
    Christoph
    Member

    Hi,

    .content-sidebar-wrap will generally do nothing unless you specifically added something to it.
    Body classes are a very good way to target specific pages.

    Change this selector (around line 1991):
    .franchise .content-sidebar-wrap main.content

    to .franchise .content

    Get rid of the two closing brackets } right underneath

    And in the 1336px media query change the selector to .franchise .content and increase margin-top to at least 7%.

    As soon as the hamburger menu shows, you should be able to add the selector with margin-top: 0;


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

    June 2, 2016 at 2:33 pm #186807
    asbilly92
    Participant

    OK that kinda makes sense because since all the other pages have a huge featured image I haven't had to worry about it before and in the regular css (not media query) I successfully targeted it like this:

    .franchise .content-sidebar-wrap main.content{margin-top:5%;}

    Very similar to what you said: .franchise .content

    But you have confused me with -

    Get rid of the two closing brackets } right underneath??

    I tried (what I thought you meant) it and I'm still doing something wrong; I tried this:

    @media only screen and (max-width:  1336px) {
    
    .franchise .content  {margin-top:7%;}
    	
    }
    
    June 2, 2016 at 2:48 pm #186808
    Christoph
    Member

    These two closing brackets:
    http://prntscr.com/bblyx2


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

    June 2, 2016 at 3:03 pm #186810
    asbilly92
    Participant

    OH geeze how did those get there anyway lol 😉

    Ok those were going along for the ride. They are gone now!

    Yep after I changed it to 7% it worked 😉 YEA!

    My hero of the day...hope you like the coffee lol!

    THANK YOU!!!!!

    June 2, 2016 at 3:04 pm #186811
    Christoph
    Member

    You are welcome.
    I appreciate the coffee 🙂


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

  • 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