Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress newbie question on the comments.php file

  • This topic is empty.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #25164
    keithybhoy
    Member

    Hi,

    Sorry if this is a basic question but I’m struggling with the following.

    I want to create for the most part a static site in WP. The trouble is that when I add content to static pages I still get the following attached with the text – "By admin, June 12, 2009 7:36 am"

    What line of code do I need to remove from the comments.php that hide’s that info?

    Link to my test site: http://keithlogan.co.uk/wordpress/

    Thanks

    #59177
    apostrophe
    Participant

    You aren’t using static pages you are using post pages which is something completely different.
    I’ve just done a quick search and found this video which may help to explain http://wordpresstraining.com/videos/blogging/creating-content-in-wordpress-posts-vs-pages/

    #59227

    You don’t want to change comments.php. Assuming you are using pages, they are displayed using the page.php template. All you have to do is look for a section that starts <div class="authormeta"> and remove that entire <div> from the template (including the closing </div>).

    If you don’t wish your pages to have comments then you can turn comments off in the Edit Page screen under Discussion.

    #59224
    keithybhoy
    Member

    Hi

    I’m not sure which options I need to turn off in the Edit Page screen under Discussion, please see my attached screen grab of the options I have selected.

    Thanks

    #59225

    Those are the default settings for new posts. If you want to change the settings of existings posts/pages you need to edit the page and change the discussion settings on a per page basis.

    [img]http://farm4.static.flickr.com/3353/3635508254_52268aa514_o.jpg[/img]

    #59220
    keithybhoy
    Member

    Hi

    I’ve created a new page making sure that ‘Allow Comments’ and ‘Allow Pings’ are switched off.

    I still get the following on the new page:

    By admin, June 17, 2009 5:35 am

    Comments are closed

    I’m missing something here? Sorry.

    Link to new page: http://keithlogan.co.uk/wordpress/?page_id=17

    #59219
    apostrophe
    Participant

    Which template are you using? Static pages should use page.php if it exists.

    #59248
    keithybhoy
    Member

    I’m using Panorama.

    It does have a page.php file

    #59252
    apostrophe
    Participant
    #59254
    keithybhoy
    Member

    thanks for the link.

    I’ve now managed to get rid of the Admin text, however the main text of my new page doesn’t display at all – I only see ‘comments are closed’?

    http://keithlogan.co.uk/wordpress/?page_id=23

    #59270
    apostrophe
    Participant

    Ok, I’ve just downloaded the Panorama theme. Pretty weird! Whoever built it obviously doesn’t know the difference between a page and a post.
    Now I haven’t tested this because I really can’t be bothered to add it to any of my local copies of WP, but I’m pretty sure that your page.php should look like this:

    Code:

#59288

It shows the following for me :mrgreen:

New page 2

testing new page in WP

#59312
apostrophe
Participant
"davesgonebananas" wrote:
It shows the following for me :mrgreen:

New page 2

testing new page in WP

Probably because he’s switched back to the default theme. :D

Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Back End’ is closed to new topics and replies.