irgendwie haut das mit css nicht hin.
<div id="content"> wird nicht mit inhalt gefüllt irgendwie und ist deswegen 0px hoch. aber im quelltext haut alles hin. wenn ich content eine fest pixelhöhe gebe, funktioniert es.
PHP
<?php get_header(); ?>
<!--maintop-->
<div id="maintop"> </div>
<!--end maintop-->
<!--wrapper-->
<div id="wrapper">
<!--content-->
<div id="content">
<!--main-blog-->
<div id="main-blog">
<div id="contenthead">
<h1>
<?php single_cat_title('MAGAZIN > '); ?>
</h1>
</div>
<!-- END contenthead -->
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="contenthead">
<h1>
<?php the_title(); ?>
</h1>
</div>
<!-- END contenthead -->
<div id="contentmain">
<?php the_content('<p class="entry-more">Read more... </p>'); ?>
</div>
<!-- END contentmain -->
<?php endwhile; ?>
<?php else : ?>
<div id="contenthead">
<h1>Not Found</h1>
</div>
<div id="contentmain">
Sorry, but you are looking for something that isn't here.
</div>
<!-- END contentmain -->
<?php endif; ?>
</div>
<!--end main blog-->
</div>
<!--end content-->
</div>
<!--end wrapper-->
<?php get_footer(); ?>
Alles anzeigen