Results 1 to 10 of 15
-
18th Feb 2011, 07:15 PM #1OPMember
Wordpress HTML error
So i have been trying to make my website HTML error free by using validator.w3.org. by googling a lot and searching everywhere i've managed to reduce the errors from 56 to 1. This last one is kinda annoying and i cant seem to figure out how to remove it. Check out the validation report here
http://validator.w3.org/check?uri=xb...Inline&group=0
Screenshot of error:
If someone can help me solve this thing, i'll be very gratefulCloudShadow Reviewed by CloudShadow on . Wordpress HTML error So i have been trying to make my website HTML error free by using validator.w3.org. by googling a lot and searching everywhere i've managed to reduce the errors from 56 to 1. This last one is kinda annoying and i cant seem to figure out how to remove it. Check out the validation report here http://validator.w3.org/check?uri=xboxpirate.com&charset=%28detect+automatically%29&doctype=Inline&group=0 Screenshot of error: http://eih.bz/s0/tmp6c69.png If someone can help me solve this Rating: 5
-
18th Feb 2011, 07:18 PM #2Member
You have two link tags for favicon, you need to move this one between the <head> tags.
PHP Code:<link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
-
18th Feb 2011, 07:20 PM #3OPMember
Thanks for the reply, but i kinda suck at HTML stuff.
can you tell me where exactly am i supposed to change this. header.php?
This is the code of the header.php
Code:<!-- header START --> <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" /> <div id="header" onclick="location.href='http://xboxpirate.com';" style="cursor: pointer;"> <!-- banner START --> <?php if( $options['banner_content'] && ( ($options['banner_registered'] && $user_ID) || ($options['banner_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) || ($options['banner_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH])) ) ) : ?> <div class="banner"> <?php echo($options['banner_content']); ?> </div> <?php endif; ?> <!-- banner END --> </div> <!-- header END -->
-
18th Feb 2011, 07:24 PM #4Member
Are you sure that's header.php or at least all of it?
header.php should start with html tag or doctype tag.
Move this:
PHP Code:<link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
PHP Code:</head>
PHP Code:<link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
</head>
-
18th Feb 2011, 07:30 PM #5OPMember
That wasn't the entire code. This is
Code:<!-- header START --> <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" /> <div id="header" onclick="location.href='http://xboxpirate.com';" style="cursor: pointer;"> <!-- banner START --> <?php if( $options['banner_content'] && ( ($options['banner_registered'] && $user_ID) || ($options['banner_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) || ($options['banner_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH])) ) ) : ?> <div class="banner"> <?php echo($options['banner_content']); ?> </div> <?php endif; ?> <!-- banner END --> </div> <!-- header END --> <!-- navigation START --> <div id="navigation"> <!-- menus START --> <ul id="menus"> <li class="<?php echo($home_menu); ?>"><a class="home" title="<?php _e('Home', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a></li> <?php if($options['menu_type'] == 'categories') { wp_list_categories('title_li=0&orderby=name&show_count=0'); } else { wp_list_pages('title_li=0&sort_column=menu_order'); } ?> <li><a class="lastmenu" href="javascript:void(0);"></a></li> </ul> <!-- menus END --> <!-- searchbox START --> <div id="searchbox"> <?php if($options['google_cse'] && $options['google_cse_cx']) : ?> <form action="http://www.google.com/cse" method="get"> <div class="content"> <input type="text" class="textfield" name="q" size="24" /> <input type="submit" class="button" name="sa" value="" /> <input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" /> <input type="hidden" name="ie" value="UTF-8" /> </div> </form> <?php else : ?> <form action="<?php bloginfo('home'); ?>" method="get"> <div class="content"> <input type="text" class="textfield" name="s" size="24" value="<?php echo wp_specialchars($s, 1); ?>" /> <input type="submit" class="button" value="" /> </div> </form> <?php endif; ?> </div> <script type="text/javascript"> //<![CDATA[ var searchbox = MGJS.$("searchbox"); var searchtxt = MGJS.getElementsByClassName("textfield", "input", searchbox)[0]; var searchbtn = MGJS.getElementsByClassName("button", "input", searchbox)[0]; var tiptext = "<?php _e('Type text to search here...', 'inove'); ?>"; if(searchtxt.value == "" || searchtxt.value == tiptext) { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } searchtxt.onfocus = function(e) { if(searchtxt.value == tiptext) { searchtxt.value = ""; searchtxt.className = searchtxt.className.replace(" searchtip", ""); } } searchtxt.onblur = function(e) { if(searchtxt.value == "") { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } } searchbtn.onclick = function(e) { if(searchtxt.value == "" || searchtxt.value == tiptext) { return false; } } //]]> </script> <!-- searchbox END --> <div class="fixed"></div> </div> <!-- navigation END -->
-
18th Feb 2011, 07:32 PM #6Member
Hey replace
Code:<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
Code:<link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
-
18th Feb 2011, 07:34 PM #7Member
Weird. Anyway, replace this:
Code:<!-- header START --> <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
Code:<!-- header START -->
Link tags can only be used between head tags, that is why it is not being validated.
-
18th Feb 2011, 07:35 PM #8OPMember
Tried that, put this code
Code:<link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
-
18th Feb 2011, 07:36 PM #9Member
Read my previous post CloudShadow.
-
18th Feb 2011, 07:40 PM #10OPMember
Still doesn't validate
Current code of header.php
Code:<!-- header START --> <div id="header" onclick="location.href='http://xboxpirate.com';" style="cursor: pointer;"> <!-- banner START --> <?php if( $options['banner_content'] && ( ($options['banner_registered'] && $user_ID) || ($options['banner_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) || ($options['banner_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH])) ) ) : ?> <div class="banner"> <?php echo($options['banner_content']); ?> </div> <?php endif; ?> <!-- banner END --> </div> <!-- header END --> <!-- navigation START --> <div id="navigation"> <!-- menus START --> <ul id="menus"> <li class="<?php echo($home_menu); ?>"><a class="home" title="<?php _e('Home', 'inove'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'inove'); ?></a></li> <?php if($options['menu_type'] == 'categories') { wp_list_categories('title_li=0&orderby=name&show_count=0'); } else { wp_list_pages('title_li=0&sort_column=menu_order'); } ?> <li><a class="lastmenu" href="javascript:void(0);"></a></li> </ul> <!-- menus END --> <!-- searchbox START --> <div id="searchbox"> <?php if($options['google_cse'] && $options['google_cse_cx']) : ?> <form action="http://www.google.com/cse" method="get"> <div class="content"> <input type="text" class="textfield" name="q" size="24" /> <input type="submit" class="button" name="sa" value="" /> <input type="hidden" name="cx" value="<?php echo $options['google_cse_cx']; ?>" /> <input type="hidden" name="ie" value="UTF-8" /> </div> </form> <?php else : ?> <form action="<?php bloginfo('home'); ?>" method="get"> <div class="content"> <input type="text" class="textfield" name="s" size="24" value="<?php echo wp_specialchars($s, 1); ?>" /> <input type="submit" class="button" value="" /> </div> </form> <?php endif; ?> </div> <script type="text/javascript"> //<![CDATA[ var searchbox = MGJS.$("searchbox"); var searchtxt = MGJS.getElementsByClassName("textfield", "input", searchbox)[0]; var searchbtn = MGJS.getElementsByClassName("button", "input", searchbox)[0]; var tiptext = "<?php _e('Type text to search here...', 'inove'); ?>"; if(searchtxt.value == "" || searchtxt.value == tiptext) { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } searchtxt.onfocus = function(e) { if(searchtxt.value == tiptext) { searchtxt.value = ""; searchtxt.className = searchtxt.className.replace(" searchtip", ""); } } searchtxt.onblur = function(e) { if(searchtxt.value == "") { searchtxt.className += " searchtip"; searchtxt.value = tiptext; } } searchbtn.onclick = function(e) { if(searchtxt.value == "" || searchtxt.value == tiptext) { return false; } } //]]> </script> <!-- searchbox END --> <div class="fixed"></div> </div> <!-- navigation END -->
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[For Hire] PSD to HTML/CSS and Wordpress!
By thuglife1 in forum ServicesReplies: 16Last Post: 4th Oct 2012, 08:06 PM -
HTML Site Upload to FTP Error
By MrOSX in forum Web Development AreaReplies: 2Last Post: 26th Jun 2012, 09:35 AM -
how to add Html on wordpress
By dexter786 in forum Webmaster DiscussionReplies: 18Last Post: 23rd Nov 2011, 05:57 PM -
[Buying] Html to wordpress
By Yomoik in forum Completed TransactionsReplies: 9Last Post: 3rd Feb 2011, 11:31 AM -
html markup strange error
By MacLoving in forum vBulletinReplies: 0Last Post: 19th Apr 2010, 05:00 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...