SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Issues with head not validating
-
Feb 11, 2009, 17:23 #1
- Join Date
- Jan 2008
- Location
- UK
- Posts
- 503
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Issues with head not validating
Okay, I'm still working on my WordPress theme. The problem is, the default WordPress header.php has PHP code inserted such as:
HTML Code:<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
HTML Code:<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
How do I get the validator to play nicely with WordPress?
-
Feb 11, 2009, 17:48 #2
- Join Date
- Jul 2005
- Location
- West Springfield, Massachusetts
- Posts
- 17,290
- Mentioned
- 198 Post(s)
- Tagged
- 3 Thread(s)
The validator should not see the PHP tags. Are you doing "validate by URI"?
Or trying by "validate by File Upload" or "validate by Direct Input"?
The validator is not a PHP parser, but an HTML validator, so it should only be checking HTML, that is, the output of the PHP file.Big Change Coming Soon - if you want your PMs save them now!
What you need to do to prepare for our migration to Discourse
A New SitePoint Forum Experience: Our Move to Discourse
-
Feb 11, 2009, 18:17 #3
- Join Date
- Jan 2008
- Location
- UK
- Posts
- 503
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ah that would explain it - I was using the direct input option. It validates when I use the validate via URI option.
Thanks.
Bookmarks