Jump to content
Sign in to follow this  
webbdo

Validate the theme

Recommended Posts

webbdo

Hi! I have 1 Error in my theme that I want to fix so it will get validated. See this http://validator.w3.org/ And serach for my site www.webbdo.se How can i validate that? Regards P

Share this post


Link to post
Share on other sites
cmunns

Its not a real problem

using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Self closed tag just before the error is causing an "inference" but it's not actually wrong.

Share this post


Link to post
Share on other sites
webbdo

But can I correct it? Regards P

Share this post


Link to post
Share on other sites
cmunns

sure, you could try manually closing the Head section or look for any self-closed tags, and add a real closing tag.

Share this post


Link to post
Share on other sites
webbdo

Whitch is? The styles are closing "</style>"

Share this post


Link to post
Share on other sites
cmunns

If you view the source generally self closed tags `/`> are red slashes

Share this post


Link to post
Share on other sites
webbdo

Ok, but in what file in WP can i edit this?

Share this post


Link to post
Share on other sites
Andrew

Pierre, Looks like you are using a `

Share this post


Link to post
Share on other sites
webbdo

Ok! I found it in liburary/_nav.php If I delete it the manu get messy. If i put /> instead of just > I get 2 errors. How can i fix this? But code in CSS? This is how the code looks like:

<?php else:?>
	
			<style type="text/css">#nav ul#menu-main-nav,#nav ul.mnav{width:890px;}</style>
	
		<?php endif;?>
	
	<div class="clear"></div>
	

Share this post


Link to post
Share on other sites
webbdo

Hi! In what file? The codes arent in header, just in liburary/_nav.php but if I put in in some of them the hole theme Fxxk up" So where shod i pt it?

Share this post


Link to post
Share on other sites
cmunns

wrong file, it would be in dynamic_css.php but honestly I'm not sure if you wrap the whole thing or just the parts that are being used since it applies to options. Andrew would be a better person to consult, I'll email him this thread.

Share this post


Link to post
Share on other sites
Andrew

Somehow you have a `

Share this post


Link to post
Share on other sites
webbdo

When I turn the "blue" menu on the tag appears there. Back to grey all are fine. So it does have whit the theme to do... So how shod I fix it?

Share this post


Link to post
Share on other sites
cmunns

The file that needs correcting is _nav.php Remove this line from the file `` If something breaks after removing it, then add the css portion of it to your css file

Share this post


Link to post
Share on other sites
webbdo

Yes the site breaks down. Only header showing. What shod I add into the CSS exacly?

Share this post


Link to post
Share on other sites
catrina

If I'm understanding Adam correctly, add this portion into the CSS:

#nav ul, #menu-main-nav, #nav ul.mnav {width:890px;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×