• Ok as I cannot make a new topic for some weird reason – says im not logged in?? I will start here as it quiet similair to my problem

    Here we go –

    The problem that iv’e got is that my “div main” does not show what it is supposed to show. I’ve put my theme into starkers, uploaded it and there we go. This is what I got.
    This image

    While it is supposed to show this image between the top( the colorfull bar) and the bottom bar –
    And this

    Now what did I do wrong. this is the code I’ve got so far in my header.php:

    <?php get_header(); ?>
    
    	<div id="main">
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<p><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
    
    				<p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>            
    
    		<?php endwhile; ?>
    	                <div id="rightmenu">
    
                        <ul>
                        <li><a href="https://www.facebook.com/" target="_blank"><img src="images/facebook.png"alt="" /></a></li>
                        <li style="margin-top: 17px;"><a href="http:/www.hyves.nl/" target="_blank"><img src="images/hyves.png" alt="" /></a></li>
                        <li style="margin-top: 35px;"><a href="https://www.twitter.com/thedolphinacademy/" target="_blank"><img src="images/tweet.png" alt="" /></a></li>
                        <li style="margin-top: 35px;"><a href="https://www.flickr.com/thedolphinacademy" target="_blank"><img src="images/flickr.png" alt="" /></a></li>
                        <li><a href="#"></a></li>
                        </ul>
                        </div>
    
    </div>
    
    	<?php endif; ?>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Please tell me where I went wrong.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’ve put my theme into starkers

    Starkers is a theme. What exactly did you change/add to it? The so-called header.php code listed above looks more like index.php. For a start, it uses <?php get_header(); ?> which is a call to header.php, so unless it’s calling itself (and going into some sort of never-ending loop), it’s another template file. The question is – which one?

    A link to the site might also help.

    Thread Starter justinvanheel

    (@justinvanheel)

    I’m sorry – that’s a typo hehe.

    It is index.php. I added my complete index.html into starkers. So what you say is correct – starkers is a naked theme as you know :p. I added my div main + a submenu into index.php. Though, I just figured out that my image is only showing complete as soon as it gets some content to display. If I put text inside my div main the image will become bigger. Though, my div rightmenu does not show.

    Are you still following me?

    Have you tried adding a min-height (that matches your image size) to your main div in the stylesheet?

    Thread Starter justinvanheel

    (@justinvanheel)

    Did it –

    #main
    {
    	background-repeat:no-repeat;
    	width:950px;
    	min-height:469;
    	float:left;
    	background-image:url(images/concept_03.jpg)
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘index.php does not show div’ is closed to new replies.