Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hand-coding widgets into theme OR is there a plugin that remembers the defaults?


nicolagreco
Participant

@nicolagreco

You could do that making the $args an array that contains values that have to be extracted, for example $before_widget that is in the code has to be

$args = ‘<div class=”my_class”>’;

$args = ‘</div>’;

$args = ‘<h2>’;

$args = ‘</h2>’;

and us $args in the function like bp_widget_you_want( $args )

Skip to toolbar