Skip to content

Instantly share code, notes, and snippets.

@radarin
Created March 1, 2020 21:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save radarin/59c31ae8f35f6bf80322f82316a21db5 to your computer and use it in GitHub Desktop.
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