WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove a div? (20 posts)

  1. theolem
    Member
    Posted 8 years ago #

    Hi, I just got my site up and running on wordpress, but i can't figure out which site the comments form are on? There is a div to much in the code, but which file do i edit to remove it?

  2. Joshua Sigar
    Member
    Posted 8 years ago #

    Normally, the file to edit is comments.php in the active theme folder; otherwise, index.php.

  3. Beel
    Member
    Posted 8 years ago #

    Depends on the theme you are using. As I recall, if the theme does not have a comments file, WP uses the default theme comment file. In that case, better to fix the theme than edit the default file.

  4. Monika
    Member
    Posted 8 years ago #

    maybe
    comments.php or comments-pop-up or similar

    if you can't find the template
    open all and search for the comments..

    there a template tags like author comments_text i.e.

    Monika

  5. theolem
    Member
    Posted 8 years ago #

    i have made my own theme, or i made a design and changed the blix theme into mine. maybe a stupid way to do it, but...

    here is an example of the problem:
    http://www.morgenutgaven.com/archives/21

  6. theolem
    Member
    Posted 8 years ago #

    i went through every file in the theme folder, but i can't figure it out..

  7. Joshua Sigar
    Member
    Posted 8 years ago #

    If the theme has the file comments.php, modify that.
    If it doesn't have one, copy one from Default theme folder to your theme folder, and modify the copy in your theme folder.

  8. theolem
    Member
    Posted 8 years ago #

    i have tried that, but it doesn't help.
    which files are being used in addition to comments.php, sidebar.php, footer.php and header.php?

  9. theolem
    Member
    Posted 8 years ago #

    any suggestions?

  10. Joshua Sigar
    Member
    Posted 8 years ago #

    List all the files you have in the current theme folder.

  11. theolem
    Member
    Posted 8 years ago #

    404.php
    archive.php
    archives.php
    bx_functions.php
    comments-popup.php
    comments.php
    contact.php
    footer.php
    header.php
    index.php
    page.php
    search.php
    page.php
    sidebar.php
    single.php
    style.css

  12. Joshua Sigar
    Member
    Posted 8 years ago #

    Paste the whole code for the following 2 files separately in http://paste.uni.cc

    index.php
    comments.php

    Come back and give us the links after pasting the code.

  13. theolem
    Member
    Posted 8 years ago #

  14. Beel
    Member
    Posted 8 years ago #

    The problem is not with your comments file. Try fixing your quotes div (wrapping a block level element with an inline element) and some of the other errors which may be causing the "not open div" message.

  15. theolem
    Member
    Posted 8 years ago #

    when a permalink is clicked, which files are being loaded then?

  16. Beel
    Member
    Posted 8 years ago #

    Depends on the theme. If there is a single.php then it is loaded along with the header and footer, otherwise index.php is used. Also if there is a comment.php file it is loaded, otherwise the file in the default directory is loaded.

    That is irrelevant I believe. Your problem appears to be improperly nested tags as I noted.

  17. theolem
    Member
    Posted 8 years ago #

    sorry, but can't understand where to find the div that is in the sourcecode of the site.
    and i'm not sure if i know what you mean?

  18. theolem
    Member
    Posted 8 years ago #

    maybe i should just start over?

  19. theolem
    Member
    Posted 8 years ago #

    ooooh, thanks beel - i think i just figured it out... =)

  20. Beel
    Member
    Posted 8 years ago #

    Good. In the file that contains your random quote you have:
    <i> <div id="wp_quotes">blah-blah</div></i>

    it should be:
    <div id="wp_quotes"><i>blah-blah</i></div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.