• Resolved garrettlynch

    (@garrettlynch)


    I’m styling my own store through css. I was using the “Presentation > Store Style” setting set to my own custom css and pointing at the “/wp-content/marketpress-styles/” folder – however the store inherits styles from marketpress.css. This is fine in most instances, I can override styles however I use different @media queries on my site and can’t override those used in marketpress.css. “None – Without Special CSS-styles” also inherits marketpress.css.

    I can modify marketpress.css but is there a way to not inherit it or disable the @media queries so that I’m not modifying the plugin and causing issues when I update?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hey @garrettlynch,

    Hope you’re well.

    There is no way to disable media queries over CSS after they defined. You should change it manually one by one. But you can unregister marketpress.css with this code;
    wp_dequeue_style( 'mp-base' );
    You can place it on any other plugin or theme functions.php.

    I hope that helps!

    Cheers,
    Oguz

    Thread Starter garrettlynch

    (@garrettlynch)

    Thanks for this, didn’t know you could do that through wordpress. Yes I’ve rewritten all the media queries in my own css now so problem solved.

    Might be useful for a future version of marketpress to build in an admin option to select the @media query sizes that correspond to desktop / tablet / mobile etc. (similar to the option for image sizes). Could use the existing sizes as default but allow changes if need be.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Store css styling and @media queries’ is closed to new replies.