Clickable shortcode images
-
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; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Clickable shortcode images’ is closed to new replies.