Site URL Shortcode
-
Hello, I added this code in
functions.php
and the shortcode [site_url] worked fine on WordPress editor. But when I tried to add the shortcode in Elementor, https:// link was created without a colon, link.add_action( 'init', function() { add_shortcode( 'site_url', function( $atts = null, $content = null ) { return site_url(); } ); } );
Could someone help me solve this?
It has been a huge inconvenience to migrate wordpress installations and need to organize several links again.Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Site URL Shortcode’ is closed to new replies.