• Would be cool to see image as an option to replace the shortcode and then have it pop back up like some of the built in wordpress shortcodes work…

    Here’s an example of what I’m referring to : https://generatewp.com/take-shortcodes-ultimate-level/

    Actually here’s an example of a plugin that implements the functionality with a filter but doesn’t seem to work well: visual shortcodes

    The filter lets you map shortcodes to images with filter like this :

    add_filter('jpb_visual_shortcodes','add_visual_shortcode_image');
    function add_visual_shortcode_image($shortcodes){
    	$shortcodes[] = array(
    		'shortcode' => 'gravityform',
    		'image' => get_stylesheet_directory_uri().'/images/form.png',
    		'command' => NULL,
    	);
    	return $shortcodes;
    }

    https://www.ads-software.com/plugins/wp-shortcode-helper/

Viewing 1 replies (of 1 total)
  • Bump, agree. This would be a great feature. However, I’ve tried this myself several times and it’s not an easy task. Whilst we’ve had it working for a few shortcodes I don’t envy the task but I’m sure if you could get it working on this plugin it’d bump it up to super-stardom!

Viewing 1 replies (of 1 total)
  • The topic ‘Clickable shortcode images’ is closed to new replies.