Hallo Zusammen,
ich habe gerade mein Template widget-ready gemacht.
Das klappt dank all der Hilfe hier auch sehr prima.
Zumindest wenn ich die widgets in einer sidebar erstelle.
Nun habe ich aber 2 sidebars, in die ich jeweils widgets einfügen möchte.
Und da hakt es gerade noch...
Ich poste mal meine sidebar.php und die functions.php (aus dem template Verzeichnis). Weiß jemand Abhilfe?
sidebar.php
ZitatAlles anzeigen
<!-- begin widget sidebars --><!-- begin right sidebar -->
<ul id="rightbar">
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar('rightbar') ) : ?><li id="Links">
<h2>Links</h2>
<ul>
<?php get_links_list(); ?>
</ul>
</li><li id="Meta">
<h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Strict'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
<?php wp_meta(); ?>
</ul>
</li><?php endif; ?>
</ul><!-- end right widget sidebar -->
<!-- begin left widget sidebar -->
<ul id="leftbar">
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar('leftbar') ) : ?><li id="Menu">
<h2>Menu</h2>
<ul>
<li><a href="<?php bloginfo('url'); ?>">Home</a></li>
<?php wp_list_pages('title_li='); ?>
</ul>
</li><li id="Search">
<!-- <h2>Search</h2> -->
<ul>
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div>
<input type="text" name="s" id="s" size="15" />
<input type="submit" value="<?php _e('Search'); ?>" />
</div>
</form>
</ul>
</li><li id="Categories">
<h2>Categories</h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
</li><li id="Archives">
<h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li><?php endif; ?>
</ul><!-- end left widget sidebar -->
<!-- end widget sidebars -->
functions.php
ZitatAlles anzeigen
<?php
if ( function_exists('register_sidebar'))
register_sidebar('rightbar');
?>
<?php
if ( function_exists('register_sidebar'))
register_sidebar('leftbar');
?>
Vielen Dank im Voraus!
mflue