Modify Layer Content in PHP

Use this PHP filter to read and modify a Layer's content.
Especially useful for Layers that contain shortcodes from 3rd party plugins.

If you’ve added a shortcode from another plugin into your slider, and this shortcode includes its own JavaScript, the following PHP snippet can be used to resolve printing conflicts.

To use the snippet:

  1. Make sure you’re using Slider Revolution version 5.1.6 or higher
  2. Add a unique class name to your Layer as shown in #2 here
  3. Adjust the “my-special-layer” part of the code to equal your unique class name
  4. Add the code to your theme’s “functions.php” file