Substitute Text – A WordPress Plugin

A simple shortcode to easily substitute the right text based on a range of conditions, such as the type of device.


In your page content, add this text:

Please [substitute_text mobile="tap" desktop="click"] the button

This will produce the desired output, which is:

On a mobile device, people will see:
Please tap the button

On a desktop device, people will see:
Please click the button

More info on Github.