Created
March 1, 2020 21:48
-
-
Save radarin/59c31ae8f35f6bf80322f82316a21db5 to your computer and use it in GitHub Desktop.
Widget-Area ins WP Theme integrieren
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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