• So just like a blog content, is there a way to set a text or image’s link to a shortcode?
    I have a shortcode that shows a popup when click on, [supsystic-show-popup id=100].
    But when I try to put it onto a text widget, it’ll literally search up that widget and it won’t work. Perferrably adding the shortcode onto an image, how can I do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • to make shortcode work in textwidgets, try to add this to functions.php of your theme:

    add_filter('widget_text', 'do_shortcode');

    Thread Starter inatan

    (@inatan)

    The widget seems to appear onto the sidebar, that worked. But is there a way to hide it until the user clicks on the text?
    On a blog post, there’s a link saying “Subscribe to mail” and if clicked, the shortcode activates a popup. But for this moment, the popup is just attached onto the sidebar.

    Yeah… since this is just a workaround, the plugin not being designed to work on widgets too, issues can appear.

    You could contact their support and ask if they can suggest some small changes to the plugin that can make it work well on widgets too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add shortcode link to image or text widget?’ is closed to new replies.