Forums

big problem with WordPress theme and comments (5 posts)

  1. officialsm
    Member
    Posted 3 years ago #

    Hi,
    i have installed the Whitespace (http://www.briangardner.com/themes/whitespace-wordpress-theme.htm) theme on my blog but i have a big problem with comments. The problem is:

    If you go on my recent post (written after theme changing) you can see alla the page formatted well:
    http://www.officialsm.net/?p=779

    But if you on older post yuo can see that the right bar is gone under comment form:
    http://www.officialsm.net/?p=766

    With post without commets the layout is ok.
    I tried to upload the original theme with same problems.

    Please someone could help me to understand the problem?
    Thank you in advance

  2. chaoskaizer
    Member
    Posted 3 years ago #

    I can see the problem. But not really sure what causing it .

    if it happen on that particular post only, I think you should double check your article's for broken HTML tag.

    u can also try adding the below code inside '/whitespace/r_sidebar.php' for temporary (just to make sure).

    find

    <!-- begin r_sidebar -->

    replace with

    <?php if (is_single() == '766') echo '</div>'; ?>
    <!-- begin r_sidebar -->
  3. officialsm
    Member
    Posted 3 years ago #

    Hi,
    with this code it seems to work correctly.
    The layout now is ok.
    What do this code???

    NB: the problem was only with commented posts.
    Thank you

  4. slobizman
    Member
    Posted 3 years ago #

    I have the same problem, and inserted the fix chaoskaizer recommended and it worked. But could you explain what the (is_single() == '766') means. I understand the is_single, but not the 766.

    Thanks.

  5. slobizman
    Member
    Posted 3 years ago #

    officialsm,

    The workaround did work, but I found the proper way to fix what is an error in the comments.php file. So do the following instead of the fix. At the end, you will see this:

    </div>
    <?php endif; // If registration required and not logged in ?>
    <?php endif; // if you delete this the sky will fall on your head ?>

    You need to change it to this:

    <?php endif; // If registration required and not logged in ?>
    </div>
    <?php endif; // if you delete this the sky will fall on your head ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags