Good day! I wondered when I connect sidebar in wordpress, I can set tags that will wrap the whole sidebar block, while the contents are displayed in lists, but is it possible to change the output of the content inside the widget itself?
$args = array( 'name' => 'Виджет sidebar', 'id' => 'sidebar', 'description' => 'Здесь добавляем виджеты сайдбара', 'class' => '', 'before_widget' => '<div class="callout success">', 'after_widget' => "</div>\n", 'before_title' => '<h3>', 'after_title' => "</h3>\n", ); register_sidebar( $args ); at the exit
<div class="callout success"><h3>Категории</h3> <ul> <li class="cat-item cat-item-3"><a href="http://wp.local/category/%d0%bd%d0%be%d0%b2%d0%be%d1%81%d1%82%d0%b8/">новости</a> </li> </ul> </div> I want to remove
<ul> <li class="cat-item cat-item-3"> and replace with your block