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!
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?
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.
Sam1995
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.
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.
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.
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.
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.
Sam1995
Member
Posted 2 years ago #
There is no 404.php. The 404 error is contained within the index.php file.
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.
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.
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....."
Sam1995
Member
Posted 2 years ago #
It's in index.php. I changed the original text that was there.
Sam1995
Member
Posted 2 years ago #
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
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.
Sam1995
Member
Posted 2 years ago #
Sam1995
Member
Posted 2 years ago #