Also, we recommend to you, to do all these changes in Child Theme.
So we’ve got this shortcode from RevoComposer [jaw_my_element title="" ... ]
.
Add this code to your child theme’s function.php
function jaw_my_element_func($atts, $content=""){ $atts = shortcode_atts( array( 'title' => '', 'my_switch' => '1' ), $atts ); echo '<div class="my-shortcode">'; echo 'My awesome shortcode can print this: '; if($atts['my_switch'] == '1'){ echo $atts['title']; } } //register shortcode add_shortcode( 'jaw_my_element' , 'jaw_my_element_func' );