Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Widget-Area ins WP Theme integrieren
<?php
function deinthemename_widgets_init() {
register_sidebar(array(
'name' => 'Widget Name',
'id' => 'neues_widget',
'description' => 'Eine zusätzliche Widget Area',
'before_widget' => '<div class=”juhu_ein_widget”>',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'deinthemename_widgets_init' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment