Customize the render of widgets in a certain dynamic sidebar (by id)
-
Hi all, I’m trying to figure out how to customize the output render of widgets inside a certain dynamic sidebar. I’ve got the following code to register my custom sidebar:
register_sidebar( array( 'name' => 'Frontpage Widgets', 'id' => 'frontpage-widgets', 'description' => '', 'before_widget' => '<div class="col">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', ));
Then, I’ve got the render of that sidebar somewhere in my template:
<?php dynamic_sidebar('frontpage-widgets'); ?>
Once I’ve put some widgets inside that sidebar, from the backend of WordPress, how can I customize/change the render of this specific sidebar?
Which hook should I use or override to achieve that?I’d like, for istance, to render all widgets within that sidebar in groups of three. Maybe wrapped in a
<div class="row">
.Thanks to all!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Customize the render of widgets in a certain dynamic sidebar (by id)’ is closed to new replies.