Responsive Opt-Out Icon

Responsive Opt-Out

By Ulrich

Active Installs

20+

Last Updated

April 28, 2013

First Released

January 13, 2013

Download History (Last one month)


Contributors

This simple setup creates a body class called “responsive” and “fixed-width” both are added to the body class of your Theme. These two classes are used to define whether or not the visitor wants a “responsive” environment.

You can either install it automatically from the WordPress admin, or do it manually:

  1. Unzip the archive and put the responsive-opt-out folder into your plugins folder (/wp-content/plugins/).
  2. Activate the plugin from the Plugins menu.

Buttons

So that you have the buttons to switch you will need this html code. They can be added anywhere.

<a href="#" onclick="return FixedWidth();" class="fixed-width-link">Fixed Width</a>
<a href="#" onclick="return Responsive()" class="responsive-link">Reponsive</a>

CSS/Styling

This plugin has no css. So that the buttons display in the correct view the following css need to be added to your theme’s style.css file directly.

.responsive .fixed-width-link {
    display: block!important;
}
.responsive .responsive-link {
    display: none!important;
}
.fixed-width .fixed-width-link {
    display: none!important;
}
.fixed-width .responsive-link {
    display: block!important;
}

Add the class “.fixed-width” infront of any styles that you add for a fixed width design and “.responsive” for the responsive design.

Blog post on intregration with Responsive theme

No FAQ provided.

Changelog

0.3

Fix setting cookie

0.2

Fix cookie path

0.1

Initial Release

<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

No previous versions available.

Plugin Info

  • Version: 0.3
  • Last Updated: April 28, 2013
  • Active Installs: 20+
  • WordPress Version: 3.4 or higher
  • Tested up to: 3.5.2
  • PHP Version: or higher
  • Tags:    
    fixed-width opt-out responsive

Ratings


5.0 out of 5 stars. (3 reviews)

See all reviews
Scroll to Top