1. Badly structured markup, invalid markup or poor CSS.
2. You need to revise what is needed for templates and for the Loop:
http://codex.wordpress.org/Theme_Development
http://codex.wordpress.org/The_Loop
3. Badly structured or invalid markup. Try validating your generated pages and your CSS.
I guess I should have added my site.
http://www.lockersnmore.com/blog
I will look at tehe above.
Thanks
I validated it online but I am not to good at code, so most of it I could not figure it out. `Right now I removed the <!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” <?php language_attributes(); ?>>` from the header.php and it is as close as I can get it, the menu is stretched out and the footer wants to center (when you refresh page it is in center then shifts left) but is shifted left, if anybody can look at my code I would be very greatful!!!
going on 24 hours working on this, and I bet it could have been done in 1hr by someone who knew what they were doing……
i am desperate….
T
The last thing you should start with is removing the doctype decalaration. This is seriously wrong. Leve this at the top of your header! But – remove the last part <?php language_attributes(); ?>
Then: add your url into http://validator.w3.org/
You will then be presented for a list of errors. Cycle through this list, starting from the top. Correct the errors.
Thanks but I have been trying to fix these errors for 12hrs now, no matter what I put in I get an error, I copied from one that validates and I still get an error
Line 38, Column 5: "DOCTYPE" declaration not allowed in instance
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/T…
I see the errors but don’t know how to fix them, can anybody heelp with these errors? Please
Thanks
T
well, I scrapped the whole idea of having seperate header.php, sidebar.php,footer.php and just copied all of my code into the index.php and then added the loop. BAM! everything is working, I guess I am just not good enough at code to make it work seperatly. Now to find out how I can add widgets to my blog?? Thanks for the help….can anyone point me to someone who can help with future problems? I will pay!
Thanks
Logicsound! I am also strugglig with PHP, but just relax, there is millions of extremely skilled people out there where you can get help. I am not sure if I am violating the rules by naming a site I am using when I need help, if so, any moderator must forgive me and delete my entry, but, when I am seriously stuck, I am using freelancer.com.
Try them, logicsound, you will be amazed.
Like ThorHammer, I’m not sure if I am violating site rules by recommending a book. And moderators, please feel free to delete this message if it is inappropriate, and accept my apologies. But I’m using WordPress 2.8 Theme Design by Tessa Blakeley Silver, published by PACKT. Yes, I know WordPress 2.8 is now a thing of the past, but even so, I found this book addresses lots of the issues you mention, from HTML and CSS to widgetizing your theme. I’m not much of a coder (I draw pictures for a living, I don’t code unless my life depends on it), but I found this really helpful.