• 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

Media queries not picking up

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 › Media queries not picking up

This topic is: resolved

Tagged: media queries, responsive

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by Lorraine.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 19, 2015 at 7:18 am #144926
    Lorraine
    Participant

    Not sure if I am doing something wrong here but my media queries are not picking up. If anyone can help it would be really appreciated.

    I changed my function code just in-case it was that - it's now...

    /** Add Viewport meta tag for mobile browsers */
    add_action( 'genesis_meta', 'theme_viewport_meta_tag' );
    function theme_viewport_meta_tag() {
    echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
    }

    My CSS looks fine I think - here is the end of my normal css and start of my media query.

    .site-footer a:hover { 
    	color: #f5f5f5;
    }
    
    /* # Media Queries
    ---------------------------------------------------------------------------------------------------- */
    
    @media only screen and (max-width: 1200px) {
    	
    	.site-inner,
    	.wrap {
    		max-width: 960px;
    		padding: 0 20px;
    	}
    
    	.site-inner .wrap {
      		background: none!important;
    	}

    You can see I have tried using !important to override but it isn't seeing it.

    I've done lots of responsive stuff so everything that I can build to percentages is good - it's just the media queries. Worried what I have messed with before realising it's not me.

    March 19, 2015 at 7:46 am #144933
    Victor Font
    Moderator

    Please post a link to the site so we can help.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 19, 2015 at 8:39 am #144940
    Lorraine
    Participant

    Hi Victor - here it is. http://217.199.187.190/comtrol.co.uk/

  • 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

© 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