Skip to main content

vc_revslider_shortcode

Filters the rendered output of the Revolution Slider shortcode within the WPBakery Revolution Slider element. Allows modification of the slider HTML before it is appended to the element output.

Parameters

ParameterTypeDescription
$outputstringThe rendered HTML output from executing the [rev_slider] shortcode via do_shortcode().

Usage

<?php
add_filter( 'vc_revslider_shortcode', 'my_modify_revslider_output', 10, 1 );

function my_modify_revslider_output( $output ) {
// Wrap the Revolution Slider output in a custom container
return '<div class="my-revslider-wrapper">' . $output . '</div>';
}

Source

File: include/templates/shortcodes/rev_slider_vc.php