Hallo,
meine sidebar.php sieht so aus:
PHP
<div id="bright"><div id="bright2">
<div id="brightTop"><span id="brightleftTop"><span id="brightrightTop"></span></span></div>
<div id="brightcenter">
<div id="sidebar">
<div id="blogextra">
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
-->
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for <?php the_time('F, Y'); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for the year <?php the_time('Y'); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
<?php } ?>
<ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : endif; ?>
</ul>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<h2>Links</h2>
<ul>
<?php wp_list_bookmarks('title_li=&title_before=<h3>&title_after=</h3>&category_before=&category_after'); ?>
</ul>
<?php } ?>
</div> <!-- End #blogextra -->
<div id="syndicate">
<ul>
<li><a href="feed:<?php bloginfo('rss2_url'); ?>">Articles (RSS)</a></li>
<li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a></li>
</ul>
</div><!-- /syndicate -->
</div><!-- /sidebar -->
</div><!-- /brightcenter -->
<div id="brightFoot"><span id="brightleftFoot"><span id="brightrightFoot"></span></span></div>
</div></div><!-- /bright & bright2 -->
Alles anzeigen
Nun wird aber die dynamic sidebar (<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : endif; ?>) nicht wie die Suche oder die anderen Überschriften der Sidebar linksbündig angezeigt, sondern immer mit einem Dreieck ein Stück nach rechts versetzt. Ich habe dort z.B. die Seitenlinks und einen Kalender eingebaut, beides ist jedoch ein Stück zu weit links und hat jeweils ein Dreieck / Aufzählungszeichen vor der Überschrift - hier mein blog:
eBay Blog - eBay | Paypal | E-Commerce | Shops | Software | Powerseller | Auktionsabwicklung
Wer weiss, warum die dynamische Sidebar immer ein Stück zuweit rechts angezeigt wird?
Danke,
H. Subke