diff --git a/inc/shortcodes/namespace.php b/inc/shortcodes/namespace.php index 4aa1dc3..490a543 100644 --- a/inc/shortcodes/namespace.php +++ b/inc/shortcodes/namespace.php @@ -44,12 +44,18 @@ function call_to_action( $atts ) { $atts = shortcode_atts( [ 'link' => '#', + 'url' => false, 'text' => 'Call To Action', ], $atts, 'aldine_call_to_action' ); + // Fallback for shortcodes using the old url attribute + if ( $atts['link'] === '#' && $atts['url'] ) { + $atts['link'] = $atts['url']; + } + return sprintf( '%2$s', $atts['link'],