Dynamic Shortcode Widget for Elementor plugin let you to add custom shortcode with simple input field.
Dynamic Shortcode Elementor provides an easy to use interface for managing attributes for your shortcode.
Why you have to use your custom shortcodes so confused like [MyShortcode name=”John Doe” slogan=”"Simplicity is king"”]
With Dynamic Shortcode Widget for Elementor plugin you can just copy the shortcode name, attributes and its data to manage them all.. And now you can input your content in textarea or select your image from the media gallery. Also, you are no longer to concern about the html escape in your shortcode start from today.
You may find more on Github
This plugin does not support enclosing shortcode!
This plugin does not collect or process any personal user data.
function custom_shortcode( $atts ) {
$attributes = shortcode_atts( array(
'name' => 'world'
), $atts );
return '<h1>Hello ' . $attributes['name'] . '!</h1>';
}
add_shortcode( 'helloworld', 'custom_shortcode' );
Shortcode: [helloworld]
Outputs “Hello world!”
Shortcode: [helloworld name=”Bob”]
Outputs “Hello Bob!”