In my node--blog.tpl.php file, I have the following code:

<?php if ($teaser):?>
    <!-- Do some stuff -->
<?php else:?>
    <!-- A little HTML -->
    <?php print render($content);?>
<?php endif;?>

When I load up a blog page, the comments form is actually above the content. This isn't some CSS quirk - it's above the content in the HTML structure.

How have I managed that, then? Can anyone suggest a way to ensure the comments form appears in its rightful place, below the content?

link|improve this question
feedback

2 Answers

Just try to check weight of $content elements. it seems that comments element has low weight number.

link|improve this answer
feedback

I have had this happen before with CCK forms.

If you have javascript enabled, it likes to reorder the weights of the fields with the drag-drop interface, and many of the hidden items don't appear in the selection.

The only way I found to fix the weight problem was to manually reassign the weights, which requires that you disable JS in your browser so the drag-drop interface goes away in favor of actual text boxes to enter the weight values.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.