Hiding comments

Discussion in 'HTML & Website Design' started by JesseE, May 29, 2008.

  1. #1
    Does anyone know how I would go about hiding the comment text on my main page for my articles like the part below that says "Posted by Kasru at 1:10 PM 0 comments".
     
    JesseE, May 29, 2008 IP
  2. MakeThatDollar

    MakeThatDollar Notable Member

    Messages:
    4,451
    Likes Received:
    158
    Best Answers:
    0
    Trophy Points:
    225
    #2
    I can do it for $5 for you. PM me if you want me to.
     
    MakeThatDollar, May 29, 2008 IP
  3. JesseE

    JesseE Peon

    Messages:
    201
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not paying 5 bucks for something this easy srry. I just need a code.
     
    JesseE, May 29, 2008 IP
  4. Ascendancy

    Ascendancy Active Member

    Messages:
    1,721
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Go into the wp-content folder, then themes, and find which theme you are currently using. Then open up the index.php file and find the code where the posts start being output. Then look for the functions (not sure of the exact name) which mention wp_author(), wp_date(), etc etc. Again, not sure if those are the exact names, but it should be something like that.

    Once you find those, either put them in HTML / PHP comments, or just delete the lines entirely.
     
    Ascendancy, May 29, 2008 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    The purpose of a community forum like this is to share our knowledge. Either offer a fix or go on. If it were worth it to the OP to pay for a snippet or two, it would be worth professional rates, not $5—more like $75/hr against a four hour minimum.

    gary
     
    kk5st, May 29, 2008 IP
  6. JesseE

    JesseE Peon

    Messages:
    201
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ascendancy I'm using basic html blog coding not wordpress. Srry forgot to mention that.
     
    JesseE, May 29, 2008 IP
  7. Ascendancy

    Ascendancy Active Member

    Messages:
    1,721
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    90
    #7
    You mean you enter each post individually?

    All blogs need to have some type of backend code, as that is how new posts can be added with an admin panel. How are you doing it with just straight HTML?

    And if you are just using HTML, you can probably just open up a page and do a search for the "posted by whoever" text, find it, and delete it.
     
    Ascendancy, May 29, 2008 IP
  8. bandung

    bandung Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    if the text has a specific class of css, you can hide it in css with display: none;
     
    bandung, May 30, 2008 IP
  9. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you want to hide it use display: none or visbility: hidden; depending on if it's wrapped inside a class/id of some sort.
    If you want to get rid of it then delete it?

    You want us to guess your blog platform and guess your whole template, these people aren't magicians
     
    wd_2k6, May 30, 2008 IP
    bandung likes this.