Created
March 22, 2021 00:47
-
-
Save BeholdPL/c5ccf1873d346f359f314edb9cfaf5e5 to your computer and use it in GitHub Desktop.
New widget area #wordpress #widget #sidebar
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 newWidgetsArea() { | |
register_sidebar( array( | |
'name' => __( 'Stopka 1', 'text-domain' ), | |
'id' => 'footer-1-col', | |
'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'text-domain' ), | |
'before_widget' => '<li id="%1$s" class="widget %2$s">', | |
'after_widget' => '</li>', | |
'before_title' => '<h2 class="widgettitle">', | |
'after_title' => '</h2>', | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment