Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Yourstyledesign

    (@ysdbjorn)

    You can use the shortcode in text widgets in your sidebar.

    I’m sorry, but this doesn’t seems to work (anymore?) in sidebar/footer widgets of any theme I’ve tried. All I get is the shortcode text displayed on the frontend: [logo-carousel id=default]
    It does work in pages and posts, though. So… am I missing something?

    Have you tried to add this line to functions.php in your theme:
    <?php add_filter('widget_text', 'do_shortcode'); ?>
    It’s allow to use shortcodes in text widgets.
    More info: Function Reference/do shortcode (Codex)

    Unfortunately, I’ve moved on and used something different. I was hoping for a solution that don’t include updating the code, so that my client won’t freak out when the carousel is missing after every theme update. But thank you for your input, I hope someone will find this useful.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can this be used in a sidebar widget?’ is closed to new replies.