Bootstrap 3 - not responding?

I am using Bootstrap 3 in my WordPress theme. Most sites will use flexible functions, but for several pages that host data visualizations, I would like to fix a fixed width.

How to establish this non-responsiveness?

(Would it be nice if there was some body class (.non-responsive) that could take precedence over responsive functions?)

0
twitter-bootstrap responsive-design wordpress
source share
2 answers

Bootstrap docs have a section on how to turn off the response: http://getbootstrap.com/getting-started/#disable-responsive

Steps to turn off responsive views
To disable sensitive features, follow these steps.

  • Remove (or simply not add) the <meta> viewport specified in CSS docs
  • Remove max-width on .container for all grid levels with max-width: none !important; and set the correct width as width: 970px; . Make sure this happens after CSS Bootstrap by default. You can optionally avoid !important with the media or Selector Fu.
  • If you use navbars, cancel all collapsing navbar and (this is too much to show here, so an example).
  • For grid layouts, use the .col-xs-* classes in addition to or instead of medium / large. Do not worry, too small a grid of devices is scaled to all resolutions, so you are configured there. You will still need Respond.js for IE8 (since our media queries still exist and need to be selected). It just disables the Bootstrap mobile site.
+2
source share

How about this?

 .non-responsive { width: 800px !important; } //or whatever width you want it to be 
+1
source share

All Articles