Forums

Sidebar Misplaced at 404 Error Page (19 posts)

  1. Sam1995
    Member
    Posted 2 years ago #

    Well, I customised by 404 Error page, but I still encounter an issue.

    http://www.movie-estate.com/?s=sidebar+down+here

    The sidebar (which should be at the grey bit at the side) has moved down below the text, which puzzles me. I'm not sure how to change this without affecting it everywhere else, because I change this through the index.php page.

    I'm using the style 'Deep Red', and if you need samples of the index.php and sidebar.php then I'm happy to provide.

    Thanks in advance!

  2. stiand
    Member
    Posted 2 years ago #

    Usually this is caused by the location of get_sidebar() within the code. Check to see if its called at the top of 404.php, but at the bottom in index.php. Or maybe you forgot to close a div or something while editing?

  3. Sam1995
    Member
    Posted 2 years ago #

    Well, <?php get_sidebar(); ?> is, by default, just above <?php get_footer(); ?>, and putting it elsewhere makes the sidebar disappear completely.

    Beforehand I forgot to close a div, and my footer was off to the side, so I know I've done that properly, considering that the footer is placed correctly.

  4. Sam1995
    Member
    Posted 2 years ago #

    I still need help...!

  5. songdogtech
    Member
    Posted 2 years ago #

    You've got some missing closing tags: [Invalid] Markup Validation of movie-estate.com/?s=sidebar%20down%20here - W3C Markup Validator. Scroll down in the validation report to see source and line numbers.

  6. Sam1995
    Member
    Posted 2 years ago #

    I only have 6 errors now, but the sidebar is STILL misplaced and I STILL have no idea what I'm doing. That link you provided me explains to no detail what I'm meant to do, so if anybody can explain to me or help, it would be much appreciated.

  7. songdogtech
    Member
    Posted 2 years ago #

    That link you provided me explains to no detail what I'm meant to do...

    Yes it does:

    end tag for <div class="main"> omitted

    You're missing a </div> tag right above </body>

    Missing closing </div> tags are 99% of the proiblem with sidebars out of place.

  8. Sam1995
    Member
    Posted 2 years ago #

    I added a </div> tag above the </body> tag in my footer (which is where I assume the problem exists), and it didn't do anything.

  9. songdogtech
    Member
    Posted 2 years ago #

    Do your homework: compare the source of the erorr page with a page that displays correctly. If you're just modifying 404.php, try using a template page based on page.php to make an static error page and redirect your 404.php to that page.

  10. Sam1995
    Member
    Posted 2 years ago #

    There is no 404.php. The 404 error is contained within the index.php file.

  11. songdogtech
    Member
    Posted 2 years ago #

    A 404.php file is a standard file for a WP theme package. Look in the default WP theme for an example. Theme File List « WordPress Codex

    The 404 error is contained within the index.php file.

    No; that's a WP error for a post not found, not a server-wide 404.

  12. Sam1995
    Member
    Posted 2 years ago #

    I'm really sorry, but I'm completely clueless - I haven't evem touched the 404.php file. The error was there to start with.

    http://templates.arcsin.se/demo/deep-red-wordpress-theme/

    Search gibberish in the search bar, and you'll see what happens. I'm really sorry if I'm not being helpful, but I'm clueless.

    I also apologise if the thread title was misleading.

  13. songdogtech
    Member
    Posted 2 years ago #

    No reason to apologize; everyone is here to learn. My point is that your theme isn't made with a 404.php, which is an overrsight by the theme developer. So you can make your own 404.php if you look at an example 404 on the default WP theme. Or, you can make a static page titled "error" from a page template based on page.php in your theme.

    In what post or page or template file did you add this text? "If you were searching for a movie, it is likely that I have not reviewed it yet....."

  14. Sam1995
    Member
    Posted 2 years ago #

    It's in index.php. I changed the original text that was there.

  15. Sam1995
    Member
    Posted 2 years ago #

    Can ANYBODY help me?

  16. henkholland
    Member
    Posted 2 years ago #

    Reading all the above I think your problem is in search.php from your theme.
    That one still has a <div> validation error:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.movie-estate.com%2F%3Fs%3Dxx

  17. Sam1995
    Member
    Posted 2 years ago #

    I have no search.php. That's contained inside index.php, and changing the <div>s messes up the index page.

  18. Sam1995
    Member
    Posted 2 years ago #

    Anyone?

  19. Sam1995
    Member
    Posted 2 years ago #

    Can anybody help?

Topic Closed

This topic has been closed to new replies.

About this Topic