rename the shortcode
-
Hello!
I am using Avada theme, which comes with a testimonals short code, but yours is much better. The problem is that the shortcode [testimonials] is used by both plugins. I ned the functionality of the Avada shortcodes so I can’t disable that. So I would like to rename yours.
In testimonials-widget.php I tried changing:
if ( ! function_exists( 'testimonials' ) ) { function testimonials( $atts = array() ) { global $Testimonials_Widget; return $Testimonials_Widget->testimonials( $atts ); }
to
if ( ! function_exists( 'testimonials' ) ) { function testimonials( $atts = array() ) { global $Testimonials_Widget; return $Testimonials_Widget->testimonials-widget( $atts ); }
But that didn’t work.
How can I rename your shortcode to something that doesn’t conflict?
Thanks in advance?
dp
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘rename the shortcode’ is closed to new replies.