Specific Content for Mobile

Description

It allows you to create specific content of pages and posts for the mobile version.

It’s perfect if you have a couple of pages where you want to remove some fat content or where you need different content.

The best way to have a mobile version is always a fully responsive design, but sometimes for a couple of pages, you may need to have different content. In all those cases, you will find useful Specific Content For Mobile.

When you replace text, images or links in the desktop version, if the replaced content is also included in the mobile version, the plugin will try to make the same changes also in the mobile version,

In any case, if the page you have modified has a specific content mobile version, better you also check both versions after the changes.

For more complex changes, the synchronization will not work, also because if the change is more than a simple replacement, the plugin will suppose you want that change only on the desktop version.

If you change something on the mobile version, no synchronization will take place. The synchronization is only in one direction, from desktop to mobile.

The synchronization should work with, Gutenberg, Page Builders, and Classic Editor.
However, the actual version has a meager number of active installations and not enough tests on the field with all kind of editors and builders.

If using your favorite editor or page builder you see some bugs in the synchronization, don’t hesitate to use the Support Forum.

To add or remove specific content for the mobile version, follow these steps:

  • click on Pages in the main admin menu
  • go with your mouse on the page you want to modify for the mobile version and click on the action link “Create mobile version”, or click on the icon “+” you see in the devices column
  • modify your page as you want to see it on mobile
  • save your page mobile version

Repeat the steps above in case you want to create a mobile version for your blog posts.

The actual version supports only the mobile version of pages and posts, no custom post types, no archives, no terms.

On mobile devices, the plugin will load the mobile version you have created for that page or post.

You will see the mobile version pages only in the back-end, on front-end nobody will see those pages.

You have no redirections, and the plugin just replaces the desktop content with the mobile version on the pages where you have specified a different content.

It’s useful if you want to remove some content in the mobile version instead of hide it via CSS.

If you have a server cache plugin, be sure to set a different server cache handling for mobile devices, in another case the mobile version of your pages could also be served on desktop devices.
E.g. W3 Total Cache and WP Fastest Cache are server cache plugins that can handle the mobile cache.

As a default, WordPress doesn’t output the blog page content before the posts loop.
Some themes do it. In this case, the blog page content output before the loop is handled by the theme templates.
The plugin will check if the theme declares support for the blog page mobile version, if not so the blog page mobile version may take the original desktop content.

For theme developers:

in your theme, you can use the following functions to give full support to the mobile version content:

eos_scfm_related_desktop_id( $post_id );

given the post ID, it will get the post ID of the related desktop version.

eos_scfm_related_mobile_id( $post_id );

given the post ID, it will get the post ID of the related mobile version.

To add the theme support to the blog content, you can add this line in your theme support action hook:

add_theme_support('specific_content_form_mobile',array( 'posts_page' => true ) );

Installation

  1. Upload the entire specific-content-for-mobile folder to the /wp-content/plugins/ directory or install it using the usual installation button in the Plugins administration page.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. After successful activation you will be automatically redirected to the plugin global settings page.
  4. All done. Good job!

Reviews

November 15, 2019
This is an awesome plugin that allows easy and quick adjustments to content specifically tailored for mobile devices. I have an excellent user experience on my desktop site that doesn't translate well to mobile, so I'm pleased to be able to optimize for different environments. Jose also provides excellent support and is happy to take a look to address installation-specific issues. I highly recommend this plugin!
August 27, 2019
I'm the plugin author, I believe in my plugin and use it on many projects, for this, I give it 5 stars
Read all 5 reviews

Contributors & Developers

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

Contributors

Changelog

0.1.1

  • Fixed: PHP error saving page missing links

0.1.0

  • Fixed: error 404 if not logged on some mobile pages

0.0.9

  • Fixed: PHP memory leak on mobile version trashing and untrashing
  • Fixed: is_front_page() returned false on mobile homepage
  • Checked: WordPress version 5.3

0.0.8

  • Added: synchronization between desktop and mobile version for simple text, images, and links replacements

0.0.7

  • Fixed: bug when user not logged-in

0.0.6

  • Added: warning after the desktop content change
  • Added: hook for the desktop and mobile versions changes synchronization (future PRO version)

0.0.5

  • Fixed: mobile version for blog posts

0.0.4

  • Added: prevent mobile version from being public to avoid SEO problems
  • Fixed: issues when mobile versions moved to trash or restored from the trash

0.0.3

  • Added: mobile version metabox in the single page and posts

0.0.2

  • Added: action links in the plugins page
  • Added: translation to Italian

0.0.1

  • Initial Release