SO Responsive Content

Description

For sites that have been built Responsive, this plugin will enable you to adjust your content too. On mobile devices like smart phones people are less likely to read very long pages of content and with the Responsive Content plugin you can easily adjust the text showing on these different devices.

The SO Responsive Content plugin adds a Formats drop down menu (pre WP 3.9 the menu is called “Styles”) to the first line of the TinyMCE Editor. Once you have selected a visibility class, the plugin shows that in 3 locations:

  1. as selected in the drop down menu
  2. with a “button” in front of the selector (the only function of this “button” is to show you that the element behind it has one of the visibility classes)
  3. in the path

There are 15 visibility classes in the Styles menu on the Visual Editor:

  • 6 for paragraphs (3 to show and 3 to hide)
  • 3 for links (only to show as hiding can be done with the inline classes below)
  • 6 for spans (3 to show and 3 to hide)

Since version 0.3 I have added 6 buttons to the Text Editor as well. For flexibility purposes these buttons (3 for showing and 3 for hiding) only add a class, so you can add the element yourself.

The plugin already comes with all the styles necessary to show the elements on or hide them from the front end, so all you need to do is save your Post, Page or other Post Type and visit your site from a few different devices (or resize your browser) to see your content change depending on the width of the browser!

Under the Other Notes-tab I have added some information on Usage and Languages.

Usage

You can use the SO Responsive Content plugin basically for any Post Type.

Although possible, I strongly discourage using the classes with images. The reason is that the SO Responsive Content plugin only uses media queries with display: block;, display: inline-block; and display: none;. If you were to add a large image to only show on large screens, a medium image to show on tablets and a small image to show on smart phones, then the person visiting your site using a phone has to download all 3 images, which can have a major impact on the data plan of the visitor!

To conditionally show images it is much, much better to implement the MobileDetect script on your site.

Languages

Naturally the SO Responsive Content plugin has been fully internationalized. In the languages directory you will find the .pot file and the .po file. I already have added the Dutch translation files.

The plugin only contains 38 strings (of which many only 1 word); it would be a awesome if you can help me translate it into other languages!

  • Dutch translation (nl_NL) by Piet Bos (last updated April 10, 2014 – 2014.4.10)
  • Serbian translation (sr_RS) by Borisa Djuraskovic (last updated April 10, 2014 – 2014.4.10)

Screenshots

  • SO Responsive Content back end Visual Editor pre WP 3.9.
  • SO Responsive Content back end Visual Editor post WP 3.9.
  • SO Responsive Content back end Text Editor.
  • SO Responsive Content front end large (>1280px).
  • SO Responsive Content front end medium (>768px <1280px).
  • SO Responsive Content front end small (<768px).

Installation

Go to Plugins > Add New in your WordPress Dashboard, do a search for “SO Responsive Content” and install it.

… OR …

Follow these steps:

  1. Download zip file.
  2. Upload the zip file via the Plugins > Add New > Upload page … OR … unpack and upload with your favorite FTP client to the /plugins/ folder.
  3. Activate the plugin on the Plugins page.

Done!

Now visit the Instructions page to see what you need to know to use this plugin.

FAQ

Installation Instructions

Go to Plugins > Add New in your WordPress Dashboard, do a search for “SO Responsive Content” and install it.

… OR …

Follow these steps:

  1. Download zip file.
  2. Upload the zip file via the Plugins > Add New > Upload page … OR … unpack and upload with your favorite FTP client to the /plugins/ folder.
  3. Activate the plugin on the Plugins page.

Done!

Now visit the Instructions page to see what you need to know to use this plugin.

Is it possible to hide shortcodes with this plugin?

As reported here it is not possible to hide shortcodes in the WP Editor. A workaround can be to add the code to your template (sample in the ticket), but that largely depends on what you want to show/hide.

I have an issue with this plugin, where can I get support?

Please open an issue over at Github, as I will not use the support forums here on WordPress.org

Reviews

Awesome!!!!!

NICE WORK Big thx to the author!

One thing i have to mention:
A Button in page offering the posibility to switch between the different contents would be greate.

A friend of mine always wants to watch the hole content (even on a small smartphone) – seems he has to much time.

But never the less! GREAT JOB!

Read all 3 reviews

Contributors & Developers

“SO Responsive Content” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

20171.1.0

  • attempt to revert to Semantic Versioning

2017.5.11

  • tested up to WP 4.8
  • some CSS changes on Settings page

2016.11.29

  • tested up to WP 4.7
  • remove version check

2016.08.13

  • tested up to WP 4.6

2015.08.12

  • TWEAK: header settings page; only showed half logo after 2015.08.05 update

2015.08.05

  • changed header settings page to h1 (https://make.wordpress.org/plugins/2015/08/03/4-3-change-to-plugin-dashboard-pages/)
  • show 4.3 compatibility

2015.04.09

2014.07.30

  • bump minimum required WP version up to 3.8
  • tested up to 4.0-beta-2

2014.04.10

  • compatible with TinyMCE 4.x
  • added different instructions/images for WP pre/post 3.9
  • additional screenshot of Formats dropdown for WP post 3.9
  • updated language files

2013.12.27

  • change px for em in frontend stylesheet (css/style.css) and make it more precise
  • change version number format
  • change links to reflect new SO WP website
  • tested up to WP 3.9-alpha

0.3.3

  • add Serbian translation files (thank you Borisa Djuraskovic)
  • add settings stylesheet to replace inline styling settings page
  • move stylesheets to separate directory (css)

0.3.2

  • change text domain to prepare for language packs (via Otto – http://otto42.com/el)

0.3.1

  • update language files

0.3

  • make correction to version check function to actually output the correct plugin name
  • enhance styling: when class is inside a paragraph display: block; should be display: inline-block;
  • 3 additional styles for links
  • 6 additional styles for inline text (in <span>s)
  • 6 additional styles for the text editor

0.2

  • name change to SO Responsive Content (from SO Visibility Classes)
  • update readme files with new name
  • update language files with new name
  • tested up to 3.7

0.1.1

  • Change color coding visual editor styles to button-like text before the selected content

0.1

  • Initial release on Github.