Hallo, ich nutze das Vidiyal Theme und möchte mir jetzt eine statische Seite als Hauptseite bauen.
Mich stört das die Sidebar nicht oben anfängt sondern erst unter dem Feld wo der Bearbeiter und das Datum stehen. Wie bekomme ich das weg? Habe schon mit der page.php experimemtiert aber da war dann die sidebar in der Mitte oder das Feld oben leer aber die Sidebar immernoch unten. Ich weiß nicht wie ich das machen muss, kann mir jemand helfen? Hier mal die page.php
Gruß Olaf
PHP
hp get_header();?>
<div id="content">
<?php if (have_posts()) : ?>
<?php $is_first=true; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if($is_first==true) {?>
<div id="latest-post">
<div class="story">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_content('Den ganzen Beitrag lesen »');?>
<?php wp_link_pages();?>
<?php $sub_pages = wp_list_pages( 'sort_column=menu_order&depth=1&title_li=&echo=0&child_of=' . $id );?>
<?php if ($sub_pages <> "" ){?>
<p>Diese Seite hat folgende Unterseiten.</p>
<ul>
<?php echo $sub_pages; ?>
</ul>
<?php }?>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<div class="info">
<div class="meta">
<p>
<?php edit_post_link(__('Bearbeiten<br/>')); ?>
<span class="user"><?php the_author() ?></span>
<span class="date"><?php the_time('j. F Y') ?></span>
<span class="comments"><?php comments_number(__('Keine Kommentare'), __('Ein Kommentar'), __('% Kommentare')); ?></span>
<?php if ($post->ping_status == "open") { ?>
<span class="trackback"><a href="<?php trackback_url(display); ?>">Trackback URI</a></span>
<?php } ?>
<?php if ($post-> comment_status == "open") {?>
<span class="feed"><?php comments_rss_link('Comments RSS'); ?></span>
<?php }; ?>
</p>
</div>
</div>
<div class="clear"></div>
</div>
<?php $is_first=false; } else {}?>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Nichts gefunden</h2>
<?php endif; ?>
<!-- end #latest-post -->
<div id="posts">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<p><?php _e('Keine Beiträge entsprechen Deinen Kriterien.'); ?></p>
<?php endif; ?>
<p align="center"><?php posts_nav_link(' - ','« Vorherige Einträge','Nächste Einträge »') ?></p>
</div>
<!-- end #posts -->
<?php get_sidebar();?>
<?php get_footer();?>
Alles anzeigen