Sidebar below content number of comments and comment box etc not showing
-
Hi,
I’m using the WDA theme and I’m having some trouble with the sidebar/footer and comments on single pages.
http://www.jdoman.com/blog – the front page, with the menu below the content.
http://www.jdoman.com/blog/journal/19 – a single post page, with no menu or footer showing and no comments or comment box!
whattt is going on!
-
nope, its still not in the right place….
EDIT: i’ve managed to get the footer down properly now (just by adding an extra </div> at the end of sidebar.php!)
so now its just the sidebar..
But it solved most of your validation errors, so we’ll try to fix the others as well and see if that helps.
Could you also post your footer.php between backticks?
</div>
<div id="footer">
Β© James Doman - <a href="http://www.jdoman.com/blog/about/site">About the site</a.
</div></div>
</body>
</html>Replace it with (you were missing a
>
):</div>
<div id="footer">
© James Doman - <a href="http://www.jdoman.com/blog/about/site">About the site</a>.
</div>
</body>
</html>ok, done that
it still doesn’t look like its changed
We’re getting there. We’re down to just 2 validation errors, which I think are in either header.php or index.php, so if you could post those ones as well, again between backticks.
HEADER:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /><title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]--><script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/prototype.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/scriptaculous.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/combo.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/lightbox.js"></script><?php wp_head(); ?>
</head>
<body>
<div id="shelf" style="display: none;">
<div id="shelfwrap">
<div id="shelfcontent">
<a href="/blog/portfolio/web">Web</a> | <a href="/blog/portfolio/print">Print</a> | <a href="/blog/portfolio/marketing">Marketing</a> | <a href="/blog/portfolio/cid">Corporate ID</a> | <a href="/blog/portfolio" >[client list]</a>
</div>
</div>
</div>
<div id="wrap">
<div id="header"><h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<p class="description"><?php bloginfo('description'); ?></p>
</div>INDEX.PHP:
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) :?>
<?php $postCount=0; ?>
<?php while (have_posts()) : the_post();?>
<?php $postCount++;?>
<div class="entry" <?php echo $postCount ;?>">
<div class="entrytitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="entrybody">
<?php the_content('Read the rest of this entry »'); ?>
</div></div>
<div class="commentsblock">
<?php comments_template(); ?>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
</div><?php else : ?>
<h2>Not Found</h2>
<div class="entrybody">Sorry, but you are looking for something that isn't here.</div><?php endif; ?>
</div>
<?php get_sidebar() ?>
<?php get_footer(); ?>its valid.
but its still not workinggg
Header looks ok. Index contained a bogus
</div>
and a ; was missing. I also made a small error in the footer.php above, so I’ve updated that post. So if you could also replace that one again?<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) :?>
<?php $postCount=0; ?>
<?php while (have_posts()) : the_post();?>
<?php $postCount++;?>
<div class="entry" <?php echo $postCount ;?>">
<div class="entrytitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="entrybody">
<?php the_content('Read the rest of this entry »'); ?>
</div><div class="commentsblock">
<?php comments_template(); ?>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
</div><?php else : ?>
<h2>Not Found</h2>
<div class="entrybody">Sorry, but you are looking for something that isn't here.</div><?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>wheyyyyyy its all valid
but still no menu in the right place π
ive uploaded teh original stylesheet as well, just in case it was that. but its still not working.
EDIT: well it wasnt the stylesheet, have reloaded my one
could it be that theres not a </div> needed in the content bit thats making the sidebar be included in that?
Yes, I think it’s a problem with the div’s somewhere. I’ve been doing some experimenting on this side to see if I can find which one, but so far no luck.
i tried putting the get sidebar after get_header and it seems to have worked, except the footer is now under the content and not right..
and there are now more errors
- The topic ‘Sidebar below content number of comments and comment box etc not showing’ is closed to new replies.