Support » Plugins and Hacks » Hacks » Use before_widget in sidebar.php?
5 years, 4 months ago
I want to style an item in a sidebar as if it were a widget.
I tried this code in sidebar.php, but it doesn’t display the widget wrapper:
<?php echo $before_widget ?>
<?php echo $after_widget ?>
It seems to only work in functions.php. Is there a way to get before_widget to work in a template like sidebar.php?