CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Building for mobile devices (http://www.codingforums.com/forumdisplay.php?f=70)
-   -   removing responsiveness from wordpress theme (http://www.codingforums.com/showthread.php?t=266387)

sixrfan 06-27-2012 12:06 AM

removing responsiveness from wordpress theme
 
any idea how i would go about removing the responsiveness from a wordpress theme so that it always looks like the full monitor version?

just looking for some direction here. please advise. thanks in advance.

SB65 06-29-2012 01:56 PM

Assuming that it's just done with media queries in the css, like the twentyeleven theme, then you just need to delete all the entries at the bottom of style.css - the ones that start:

Code:

@media (max-width: 800px)
etc.

sixrfan 06-29-2012 05:45 PM

thanks. it gets a little complicated in that I'm using a child theme. so none of those media queries even exist in the child theme's style sheet. so i'm looking for a way to cancel out the media queries of the parent theme's style sheet.

any idea how to do that?

SB65 07-02-2012 04:35 PM

Well, technically you'd have to replicate all the media queries in the parent stylesheet into your child theme and set all the values the same as the "normal" css, but that' sounds like a painful exercise. So, if you have something like:

Code:

@media (max-width: 600px) {
        #page{
                min-width:320px;
        }
}

in the parent theme, but this in your child theme:

Code:

#page{
    min-width:900px
}

then you'd need to add the following to the child theme as well:

Code:

@media (max-width: 600px) {
        #page{
                min-width:900px;
        }
}

Alternatives would be to edit the parent stylesheet - although you've then got the risk of it being overwritten with an update.

My preferred option is to create a new theme rather than a child theme, then you're in control of what's happening.


All times are GMT +1. The time now is 02:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.