WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar below content ++ number of comments and comment box etc not showing (31 posts)

  1. jmd4eva
    Member
    Posted 8 years ago #

    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!

  2. Nazgul
    Member
    Posted 8 years ago #

    You have XHTML validation errors on both pages. Try fixing these and these. I think that will solve your problems.

  3. jmd4eva
    Member
    Posted 8 years ago #

    OK, but how can I fix them? I'm not a coder :|

  4. Nazgul
    Member
    Posted 8 years ago #

    Where did you get your theme?

    Also, as a sidenote, I'd suggest upgrading to WordPress 2.0.3, because the version you're running (2.0.2), contains a security issue.

  5. jmd4eva
    Member
    Posted 8 years ago #

    the theme is from http://www.sapientone.org/wda/ i've emailed him and left comments saying it doesn't work and hes helped me sort out two problems i had before with it, but i just dont know how to get the sidebar back to the side.

    i'll upgrade now, thanks for telling me.

  6. Nazgul
    Member
    Posted 8 years ago #

    Did you make any changes to the theme yourself? Because I see some discepancies between the code in that theme and what your site outputs.

    Also, if you've got plugins running, try disabling them and see if the validation error count goes down. It could be that some plugins don't interact well with your theme.

    And while we're on the subject of plugins, also take a look at the WordPress 2.0.3 Tuneup plugin.

  7. jmd4eva
    Member
    Posted 8 years ago #

    ahhhhhhh yess its the bloody static home page plugin, which I NEEED!

    any ideas?

    thanks for ur input so far!!

    EDIT: its not the static home page plugin, because on my single post page (www.jdoman.com/blog/journal/19 ) the menu is below as well..

    could it be a styling issue?

  8. Nazgul
    Member
    Posted 8 years ago #

    Link to where you got the plugin?

    EDIT: The plugin is part of the problem. We've got to fix all your validation errors. Once we've tackled the one generated by that plugin, we'll take on the rest.

  9. jmd4eva
    Member
    Posted 8 years ago #

  10. Nazgul
    Member
    Posted 8 years ago #

    Weird, because that plugin doesn't output or change any XHTML as far as I can tell, so it can't be responsible for the layout issues.

  11. jmd4eva
    Member
    Posted 8 years ago #

    So what else could it be thats making it go wrong? :-(

  12. Nazgul
    Member
    Posted 8 years ago #

    This is what's in the theme's sidebar.php, as downloaded from the link you gave:
    <div id="sidebar">
    <ul>
    <li><a href="<?php echo get_settings('home'); ?>/">Home</a></li>
    <li><a href="javascript:Effect.Combo('shelf', {duration: 0.5});" title="about">About</a></li>
    <li><a href="javascript:Effect.Combo('shelfsearch', {duration: 0.5});" title="search">Search</a></li>

    This is what your site outputs:
    <div id="sidebar">
    <ul>
    <h2>Menu</h2>
    <li class="page_item"><a href="http://jdoman.com/blog" title="Home">Home</a></li>
    <li class="page_item"><a href="http://jdoman.com/blog/about/" title="About">About</a></li>

    So there's a discrepancy there (the added <h2> stuff).

    Could you please post the contents of your themes sidebar.php here, between backticks?

  13. jmd4eva
    Member
    Posted 8 years ago #

    <div id="sidebar">
    <ul>
    <h2>Menu</h2>
    <?php wp_list_pages('exclude=7,20&title_li=&sort_column=menu_order'); ?>
    <li><a href="javascript:Effect.Combo('shelf', {duration: 0.5});" title="Portfolio">Portfolio</a></li>
    <li><a href="javascript:Effect.Combo('shelfsearch', {duration: 0.5});" title="search">Search</a></li>
    <div id="shelfsearch" style="display: none;">
    <div id="shelfwrapsearch">
    <div id="shelfcontentsearch">

    <div>
    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>

    </div>
    </div>
    </div>
    </div></li>

    <h2>JOURNAL</h2>
    <ul>

    <?php mdv_recent_posts(10, '<li>', '</li>', false, 0, true); ?>

    </ul>

    </div>

    sorry! i added the h2 menu and journal names, as well as the call for the recent posts plugin and a link to home.

  14. Nazgul
    Member
    Posted 8 years ago #

    You forgot to but it between backticks. Now the forum is trying to render them.

    Backticks = A kind of apostoph like thingy, which on most keyboards can be found next tot the 1 key.

  15. jmd4eva
    Member
    Posted 8 years ago #

    there, sorry!

  16. Nazgul
    Member
    Posted 8 years ago #

    Try replacing it with this:

    <div id="sidebar">
    <h2>Menu</h2>
    <ul>
    <?php wp_list_pages('exclude=7,20&title_li=&sort_column=menu_order'); ?>
    <li><a href="javascript:Effect.Combo('shelf', {duration: 0.5});" title="Portfolio">Portfolio</a></li>
    <li><a href="javascript:Effect.Combo('shelfsearch', {duration: 0.5});" title="search">Search</a></li>
    </ul>
    <div id="shelfsearch" style="display: none;">
    <div id="shelfwrapsearch">
    <div id="shelfcontentsearch">

    <div>
    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>

    </div>
    </div>
    </div>
    </div>

    <h2>JOURNAL</h2>
    <ul>
    <?php mdv_recent_posts(10, '<li>', '</li>', false, 0, true); ?>
    </ul>
    </div>

  17. jmd4eva
    Member
    Posted 8 years ago #

    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..

  18. Nazgul
    Member
    Posted 8 years ago #

    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?

  19. jmd4eva
    Member
    Posted 8 years ago #

    </div>

    <div id="footer">
    © James Doman - <a href="http://www.jdoman.com/blog/about/site">About the site</a.
    </div></div>
    </body>
    </html>

  20. Nazgul
    Member
    Posted 8 years ago #

    Replace it with (you were missing a >):

    </div>

    <div id="footer">
    &copy; James Doman - <a href="http://www.jdoman.com/blog/about/site">About the site</a>.
    </div>
    </body>
    </html>

  21. jmd4eva
    Member
    Posted 8 years ago #

    ok, done that

    it still doesn't look like its changed

  22. Nazgul
    Member
    Posted 8 years ago #

    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.

  23. jmd4eva
    Member
    Posted 8 years ago #

    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() ) { ?> &raquo; 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 &raquo;'); ?>
    </div>

    </div>
    <div class="commentsblock">
    <?php comments_template(); ?>
    </div>
    <?php endwhile; ?>
    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></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(); ?>

  24. jmd4eva
    Member
    Posted 8 years ago #

    its valid.

    but its still not workinggg

  25. Nazgul
    Member
    Posted 8 years ago #

    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 &raquo;'); ?>
    </div>

    <div class="commentsblock">
    <?php comments_template(); ?>
    </div>
    <?php endwhile; ?>
    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></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(); ?>

  26. jmd4eva
    Member
    Posted 8 years ago #

    wheyyyyyy its all valid

    but still no menu in the right place :-(

  27. jmd4eva
    Member
    Posted 8 years ago #

    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

  28. jmd4eva
    Member
    Posted 8 years ago #

    could it be that theres not a </div> needed in the content bit thats making the sidebar be included in that?

  29. Nazgul
    Member
    Posted 8 years ago #

    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.

  30. jmd4eva
    Member
    Posted 8 years ago #

    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..

Topic Closed

This topic has been closed to new replies.

About this Topic