Return to Snippet

Revision: 33459
at October 8, 2010 22:25 by PM-Webdesign


Initial Code
<!-- 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 -->

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('MiddleSidebar') ) : ?>
    <!–Default sidebar info goes here–>

    <?php endif; ?>

Initial URL
http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Initial Description

                                

Initial Title
Sidebar Widgets in Wordpress hinzufüegn

Initial Tags
wordpress

Initial Language
PHP