I’ve never used the default theme aka “Kubrick” as a theme myself. Was surprised to see it didn’t validate.
I checked the link. There are only 2 errors in W3C validation:
<div id="header" role="banner">
<ul role="navigation">
Instead of role – use class="banner"
or class="navigation"
and change style.css to fit
Moderator
t-p
(@t-p)
Hi,
thanks for the response,
I am talking about CSS file.
tara
My bad. Yeah, the rounded corners generated by 4 radii are not valid CSS – so if you want 100% – you can delete those 4 selector and respective declarations, knowing that you won’t have rounded corners unless you make rounded corners image files and upload to theme and tweak style.css, or use javascript to generate the rounded corners.
In your header.php look for the following near the top
<style type="text/css" media="screen">
#page { background: url("http://www.gurbani.org/wptest/wp-content/themes/mytheme/images/kubrickbg-ltr.jpg") repeat-y top; border: none; }
</style>
add this declaration #ffffff
to background selector so in effect…
#page { background: #ffffff url("http://www .....}
Moderator
t-p
(@t-p)
thanks mercome for quick response,
I am not a coder.
Is it OK to ignore these four validation errors? Any side effects?
this is default theme. I thought it to be free of these sorts of validation errors!!
thanks again.
tara
It won’t affect SEO ranking for sure. Please, no exclamation points re validation errors 🙂 Those are very minor and like I said, it can be corrected if you’re going 100% valid.
Moderator
t-p
(@t-p)
Hi mercime,
I also looked for in my header.php near the top, but I cannot see anything like what you have above.
the closes to that I see this:
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
What it’s not near what you had above.
Thanks again for your help and patient.
tara
I am looking in the WPMU folder and it’s there in wp-content/themes/default folder. Open up header.php, it’s right under
<style type="text/css" media="screen">
<?php
// Checks to see whether it needs a sidebar or not
if ( empty($withcomments) && !is_single() ) {
?>
It’s not exactly at the top, perhaps I just should have said, in the header.php 🙂
Moderator
t-p
(@t-p)
hi mercime,
Thank you so much for your help.
1) I found what you asked me look for.
this is what did, but the error is still there (“14 #page Value Error : background Parse Error [empty string]”):
<style type=”text/css” media=”screen”>
<?php
// Checks to see whether it needs a sidebar or not
if ( empty($withcomments) && !is_single() ) {
?>
#page { background: #ffffff url(“http://www.gurbani.org/wptest/wp-content/themes/mytheme/images/kubrickbg-ltr.jpg”) repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
<?php } ?>
</style>
2) any suggestion to fix the first error on line #132:
132 #footer Value Error : background Parse Error [empty string]
Thanks again.
tara