• Hello,

    I am trying to add shortcode of a button to Out focus section, in the textarea, but chars like ” ” or ‘ ‘ are escaped (like [btnsx id=\’80\’]) and shown literally. How to add a shortcode there?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there,

    Please try adding:

    add_filter('widget_text', 'do_shortcode');

    in your functions.php file. Hope it helps.

    Thread Starter Castroviejo

    (@castroviejo)

    Thanks, but I should put it anywhere specific? Because it did not have any effect, still [btnsx id=”81″] is changed to [btnsx id=\”81\”]

    Thread Starter Castroviejo

    (@castroviejo)

    Also I am supposed to add this via <?php echo do_shortcode(‘[btnsx id=”80″]’); ?>, right?

    Then the php is stripped entirely

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘shortcodes in our focus textarea’ is closed to new replies.