• I created this site using Twenty Ten. In all the pages that are using the one-column layout (which incidentally have comments turned off), there is an extra --> at the bottom of the page. It looks like it’s right after where the comments area would be, if comments were allowed. It doesn’t show up on the blog page. I don’t know if that’s because comments are “on” on the blog, or because I use the two-column layout on the blog. I have looked at onecolumn-page.php, footer.php, and comments.php and I don’t see an extra closing comment tag anywhere. Help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • it is because how you commented the comment area in loop-page.php, shows as nested html comments in this area in the browser:

    <!--
    			<div id="comments">
    
    								<div id="respond">
    ...
    ...							</form>
    							</div><!-- #respond -->
    
    </div><!-- #comments -->
     -->

    (some browsers handle that better than others – for instance firefox does not show -->)

    i am guessing (?) you have this in loop-page.php:
    <!--<?php comments_template( '', true ); ?>-->

    if you don’t want comments in pages, do use php commenting in this line (commented shown below):

    <?php // comments_template( '', true ); ?>

    Thread Starter Rachel Goldstein

    (@rachelgoldstein71)

    That did it! Thanks. I never would have figured that out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extra characters in one-column template’ is closed to new replies.