Activity Stream
48,167 MEMBERS
6844 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1.     
    #1
    Member

    Default 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 grateful
    CloudShadow 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

  2.   Sponsored Links

  3.     
    #2
    Member
    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" /> 
    And remove the other one, or the other way around.

  4.     
    #3
    Member
    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 -->
    Thanks a lot for the help

  5.     
    #4
    Member
    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" /> 
    Right before this:
    PHP Code: 
    </head
    Result:
    PHP Code: 
    <link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
    </
    head

  6.     
    #5
    Member
    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 -->

  7.     
    #6
    Member
    Hey replace
    Code: 
    <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
    with this

    Code: 
    <link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
    both are same may be you are not getting the space right.Try it

  8.     
    #7
    Member
    Weird. Anyway, replace this:

    Code: 
    <!-- header START -->
    <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/favicon.ico" />
    With:

    Code: 
    <!-- header START -->
    anangupta, there is nothing wrong with the tag itself, it's the placement. Basically he wants his page to be validated by W3 (XHTML valid).

    Link tags can only be used between head tags, that is why it is not being validated.

  9.     
    #8
    Member
    Tried that, put this code

    Code: 
    <link rel="shortcut icon" href="http://xboxpirate.com/wp-content/themes/inove/favicon.ico" />
    first before <!-- header START --> and then after. Error still comes

  10.     
    #9
    Member
    Read my previous post CloudShadow.

  11.     
    #10
    Member
    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 -->

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [For Hire] PSD to HTML/CSS and Wordpress!
    By thuglife1 in forum Services
    Replies: 16
    Last Post: 4th Oct 2012, 08:06 PM
  2. HTML Site Upload to FTP Error
    By MrOSX in forum Web Development Area
    Replies: 2
    Last Post: 26th Jun 2012, 09:35 AM
  3. how to add Html on wordpress
    By dexter786 in forum Webmaster Discussion
    Replies: 18
    Last Post: 23rd Nov 2011, 05:57 PM
  4. [Buying] Html to wordpress
    By Yomoik in forum Completed Transactions
    Replies: 9
    Last Post: 3rd Feb 2011, 11:31 AM
  5. html markup strange error
    By MacLoving in forum vBulletin
    Replies: 0
    Last Post: 19th Apr 2010, 05:00 PM

Tags for this Thread

BE SOCIAL