WordPress.org

Ready to get started?Download WordPress

Forums

Extra characters in one-column template (3 posts)

  1. RachelGoldstein71
    Member
    Posted 2 years ago #

    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?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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 ); ?>

  3. RachelGoldstein71
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic