/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- Code in functions.php einfuegen --> <!-- Fuegt zwei Sidebars hinzu --> if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'MiddleSidebar', 'before_widget' => '<li class="widget">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h3>', )); register_sidebar(array('name'=>'FooterSidebar', 'before_widget' => '<li class="widget">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h3>', )); <!-- Code in Template Datei einfuegen --> <!–Default sidebar info goes here–> <?php endif; ?>
URL: http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/