• 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 working

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 › General Discussion › Media Queries not working

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 10 years, 3 months ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 20, 2015 at 2:06 pm #145053
    khcreativemedia
    Member

    I have a site with media queries and none of my queries are working. This is a WordPress site build on the Genesis platform.

    Head:

    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

    CSS with query:


    @media
    only screen
    and (min-device-width : 775px)
    and (max-device-width : 1024px) {
    #header {
    float: none;
    }

    .another_site_inner-wrap {
    float: none;
    }
    }

    I'm not sure what else you would need to see to help guide me in the right direction. I'm a bit of a newbie, so please excuse my lack of knowledge.

    http://www.hardscapeelements.com/
    March 21, 2015 at 4:00 am #145071
    Victor Font
    Moderator

    The first thing I see is that your site is built using XHTML. XHTML is a variant of HTML that uses the syntax of XML, the Extensible Markup Language. In XHTML, style sheets needed to be declared for either print or screen if you wanted to use media queries:

    <link rel="stylesheet" type="text/css" media="screen" href="style.css">
    <link rel="stylesheet" type="text/css" media="print" href="print.css">

    You also have a lot of parse errors found in the W3C Validator: http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.hardscapeelements.com%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en

    You should really update your theme to HTML5 if you want to provide the best user experience.


    Regards,

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

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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

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