HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
I'm thinking this belongs here instead...
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Fri Aug 28, 2009 12:57 pm     I'm thinking this belongs here instead... Reply with quote

--------------------------------------------------------------------------------

Hello everyone, my name's Jesse and this is my first post here on these forums and I'm really looking for some help here.

I am currently using the Soul Vision v.1.0 theme. After running the W3C Markup Validator I see that there are a total of 68 Errors and 26 Warnings.

I really love this template and it works very, very well with my vision and content.

I don't know anything really about fixing or cleaning up any code (and yes I did try using HTML Tidy and it messed up my site so I had to reset it all).

Is there any one person who would be willing to help me make this W3C compliant for the sake of SEO?

I didn't include my meta title, keywords and description in the above header.php.


Last edited by JDawggS316 on Sat Aug 29, 2009 7:40 am; edited 1 time in total
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Fri Aug 28, 2009 1:13 pm     Reply with quote

For example, from the W3C Markup Validator I get a lot of these errors:

document type does not allow element "link" here

Other errors include:

document type does not allow element "meta" here
document type does not allow element "style" here
end tag for element "head" which is not open
document type does not allow element "body" here
document type does not allow element "ul" here; assuming missing "li" start-tag
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Fri Aug 28, 2009 2:07 pm     Reply with quote

The correct way to validate a php page is to use view...source, copy and paste that code into a blank (x)html page and save it using any name. Validate this page instead of the php page. The validator does not validate php. You want to validate the code after the server and browser has rendered it.

Remove the extra head closing tag after the meta data.
Where's the closing body and html tags?

Here's a great step by step tutorial for creating wp themes.

Check out my link below, it is a wp custom theme and I learned how to do it with the above link. Your code can easily be adapted to the tutorial.
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Fri Aug 28, 2009 3:30 pm     Reply with quote

Okay well I copied and pasted the source code from the main home page and still come up with 70 errors and 26 warnings.

I have freaked out at the idea of going through the .CSS style sheet as I didn't design this theme.
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Fri Aug 28, 2009 3:33 pm     Reply with quote

Do you have a link to the site where you got the theme?
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Fri Aug 28, 2009 3:36 pm     Reply with quote

Here is a website I found that you can download it at. I don't remember where I first downloaded it from (which was months ago):

http://www.digtemplates.com/free-wordpress-template/soulvision-wordpress-theme/

Does this help?
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Fri Aug 28, 2009 5:41 pm     Reply with quote

No, that doesn't help. Can you post the view source code? Remove any personal content you don't want viewed.
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Fri Aug 28, 2009 5:47 pm     Reply with quote

DELETED

Last edited by JDawggS316 on Sat Aug 29, 2009 7:41 am; edited 1 time in total
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Fri Aug 28, 2009 5:50 pm     Reply with quote

I hope this is what you're looking for.

I'm hoping someone can clean it up (knowing as I can't) or else I'll just have to go with a different template altogether Confused
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Fri Aug 28, 2009 7:30 pm     Reply with quote

Ok, a comment first. There's nothing you can do about errors in an rss feed or youtube links...not your fault.

However there are errors you can fix.
Insert a title in the head section before the meta data, it is required.
Code:
<title>Put title here</title>


In the <div class="Menuright"> there are some opening li tags with no closing tags
Code:
<div class="Menuright">
<ul>
<li><a href="http://www.kingdomhorizon.com/">Kingdom Horizon</a></li>
<li><!-- this is not a valid list item, needs to be removed -->
<li class="page_item page-item-2"><a href="http://www.kingdomhorizon.com/about/" title="About">About</a></li>
<li class="page_item page-item-11"><a href="http://www.kingdomhorizon.com/contact/" title="Contact">Contact</a></li>
</li><!-- not a valid closing tag, needs removed -->
</ul>
</div>


After the <div id="wrap">, remove the closing tags for body and html.

css styling cannot be used inside the title tags, remove in all cases.
examples:
Code:
<h1><a title="Permanent Link to Did Jesus <i>Really</i> Exist?"
and
<h1><a title="Permanent Link to The <b>IMPACT</b> of Your Words"


In all instances of <div class="postinfo">, there must be opening and closing unordered list tags
Code:
<div class="postinfo">
<ul>
<!-- enclose the php code for postcomments with the tags -->
<li class="postcomments">
<a href="http://www.kingdomhorizon.com/2009/08/be-back-soon/#respond" title="Comment on Be Back Soon!">0 Comments</a> </li>
<li class="postcat">Filed under:
<a href="http://www.kingdomhorizon.com/category/announcements/" title="View all posts in Announcements" rel="category tag">Announcements</a> </li>
</ul>
<div class="clearer"></div>
</div>


Take care of these errors and your page still will not validate due to the rss feed and youtube errors.
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Fri Aug 28, 2009 7:58 pm     Reply with quote

Well it certainly helped lower the errors that's for sure!

Thank you so, so much for even taking the time to do that for me.

Does having a validated site really help all that much with SEO and getting more traffic?
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Fri Aug 28, 2009 8:24 pm     Reply with quote

Validation has nothing to do with seo or trafic. Meta tags, good content, link backs and constantly updated content users want make a successful site that is highly rated by search engines. Validation is to ensure there are no coding errors so your pages display correctly in all browsers.
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Sat Aug 29, 2009 6:06 pm     Reply with quote

How do I edit this part when I cannot find it in the header.php? I know it's in the source code but how do I update that and make it take effect?

<li class="page_item page-item-11"><a href="http://www.kingdomhorizon.com/contact/" title="Contact">Contact</a></li>
</li><!-- not a valid closing tag, needs removed -->
</ul>
</div>
sticks464



Joined: 31 Dec 2006
Posts: 2311

PostPosted: Sat Aug 29, 2009 6:25 pm     Reply with quote

Are these links in one of the sidebars? If so post your php code for the sidebar.
JDawggS316



Joined: 28 Aug 2009
Posts: 20

PostPosted: Sat Aug 29, 2009 6:33 pm     Reply with quote

Okay I'm down to 8 errors from 68 errors and 26 warnings Very Happy

Here are the remaining 8 errors being reported on the W3C Validation tool:

Line 69, Column 16: document type does not allow element "ul" here; assuming missing "li" start-tag

Line 76, Column 15: end tag for "li" omitted, but OMITTAG NO was specified

Line 227, Column 16: document type does not allow element "h2" here; assuming missing "li" start-tag

Line 235, Column 15: end tag for "li" omitted, but OMITTAG NO was specified

Line 240, Column 15: document type does not allow element "h2" here; assuming missing "li" start-tag

Line 266, Column 9: end tag for "li" omitted, but OMITTAG NO was specified

Error Line 270, Column 10: document type does not allow element "h2" here; assuming missing "li" start-tag

Line 321, Column 9: end tag for "li" omitted, but OMITTAG NO was specified
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial