• trishahdee

    (@trishahdee)


    I love this plugin and use it often for client sites.

    I’m currently trying to use it in the footer of a site and can’t get the email to generate. I’ve tried using a sidebar with Enhanced Text widget which usually generates shortcodes. And I’ve tried the shortcode in the footer template using…

    <?php echo do_shortcode('[email none@none.com]'); ?>

    Can you tell me how I can get the shortcode to work in the template?

    https://wordpress.org/plugins/email-javascript-cloaker/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cgarvey

    (@cgarvey)

    Hi Trishah,

    The plugin currently doesn’t support use outside of standard content body. However, I’ll take a look at what’s involved in fixing that.

    Thread Starter trishahdee

    (@trishahdee)

    That would be great!

    I was able to get it to work in a sidebar text widget by adding this to functions.php:

    add_filter('widget_text', 'do_shortcode');

    This works for the standard text widget included in WP Core but not the Enhanced Text Widget plugin.

    Please let me know if I can help you test any solutions you come up with 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add shortcode with a template or sidebar’ is closed to new replies.