• Hello All i am validating wordpress theme called tuts press.

    and there was a lot of errors in XHTML and i have correct them.
    but at last 23 errors renaming and i cant find the source code of them in theme file’s.

    on front page it’s using this code to show latest post.

    <ul id="column2"><li>
    <?php 
    
    			$col2postcount = 1;
    
    			if(get_option('tpthemes_column2_posts_type') == 'Featured Posts') {
    
    			  query_posts( array(
    				  'offset' => '1',
    				  'tag' => get_option('tpthemes_featured_post_tags')
    				  ));
    
    			  }
    
    			if( have_posts() ) : while( have_posts() ) : the_post();
    
    				if($col2postcount < 6) {
    					include(TEMPLATEPATH. '/includes/templates/home-featured-loop2.php');
    				}
    				else {
    					include(TEMPLATEPATH. '/includes/templates/home-featured-loop3.php');
    				} 
    
    			$col2postcount ++;
    
    			endwhile; endif; wp_reset_query();
    		?>
    </div>

    and i am having problems here. the output of this code in XHTML is

    <ul id="column2"><li>
    
    <div class="thumbnail-sag"><li class="clear featured-1"> 
    
    <a href="https://misning.co.cc/2012/07/education-ends-and-means/" rel="bookmark"></a>
    
    	<h2 class="entry-title"><a href="https://misning.co.cc/2012/07/education-ends-and-means/" title="Permalink to Education Ends and Means" rel="bookmark">Education Ends and Means</a></h2>
    
    	<div class="entry-meta">
    
    		<abbr title="July 5, 2012 at 10:59 am">6 days ago</abbr> <span class="entry-sep">|</span> <span class="entry-comment"><a href="https://misning.co.cc/2012/07/education-ends-and-means/#respond" title="Comment on Education Ends and Means">0 comment</a></span><span class="entry-cat">
    
    	<a href="https://misning.co.cc/category/general-topics/">General Topics</a>	</span></span>
    
    	</div> <!--end .entry-meta-->
    </div>

    and it’s showing following errors
    1:
    Line 131, Column 56: document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag
    <div class="thumbnail-sag"><li class="clear featured-1">

    2:
    Line 140, Column 90: end tag for element “span” which is not open

    <a href="https://misning.co.cc/category/general-topics/">General Topics</a>	</span></span>

    and i can not find them in theme files. please anyone can guide me to solve this problem.

    and for more detail about this problems you can visit on this site.
    https://misning.co.cc
    (i have not upload it on real site yet.)

    many many thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    I could not find “tuts press” theme in the WP free theme directory.
    Is it a paid theme?
    If it is, you may want to contact the vendor.

    Thread Starter Annu Balti

    (@annu-balti)

    No its free theme.. i have download it from another site.. and thank you for reply.. i have configured it all and now there is no error… making it looks like complete CMS website and using widgets on homepage instead of latest post or static page.. i will upload it in wordpress directory to free download for all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘W3C Validations of theme.’ is closed to new replies.