This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Mobile Specific Content

Description

This plugin filters content for mobile on pages, posts and widgets via shortcode. It enables
[mobile-specific-content] shortcode, within it you can specify content for mobile devices filtered by WordPress built-in function wp_is_mobile() (see codex reference https://codex.wordpress.org/Function_Reference/wp_is_mobile).

Important

The plugin will only work when it’s used inside WordPress default content area. When it´s used in Visual Composer´s or Page Builder´s content blocks it won´t behave as spected because content has already been filtered by those other plugins.

Screenshots

  • Mobile Specific Content button in the editor.

Installation

  1. Upload plugin .zip file through WordPress back end section (Plugins/Add new/ Upload Plugin)
  2. Activate plugin from Plugins menu.

FAQ

How does the shortcode work?

Whenever you editing a post or page a new button will appear in your editor – a symbol of a smartphone – if you click it, it will add a [mobile-specific-content] shortcode to your content area. Everything that you write beetween the opening shortcode and the closing one will be shown only in mobile phones, and the rest of the code will be ignored.

i.e.

This content will be ignored in mobile phones

[mobile-specific-content]

This will be shown only in mobile phones

[/mobile-specific-content]

and shown only in desktop.

Of course, you can add [mobile-specific-content] shortcode by typing it manually, but remember you can only use it once by post or page.

Contributors & Developers

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

Contributors

Changelog

1.0

  • First version of this plugin.