...

View Full Version : removing responsiveness from wordpress theme



sixrfan
06-27-2012, 01:06 AM
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, 02: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:


@media (max-width: 800px)

etc.

sixrfan
06-29-2012, 06: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, 05: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:


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

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


#page{
min-width:900px
}

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


@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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum