Viewing 1 replies (of 1 total)
  • Thread Starter officevoodookit

    (@officevoodookit)

    Never mind. I found this https://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes

    The problem. Even if you enjoyed this article, you may have felt a bit frustrated because, by default, WordPress doesn’t allow shortcode to be inserted into sidebar widgets. Thankfully, here’s a little trick to enhance WordPress functionality and allow shortcodes to be used in sidebar widgets.

    The solution. One more piece of code to paste in your functions.php file:
    view source

    1 add_filter('widget_text', 'do_shortcode');

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP CSS Button (CTA-Button Plugin)] Buttons in Widgets’ is closed to new replies.