WordPress.org

Ready to get started?Download WordPress

Forums

Commenting on pages (8 posts)

  1. Mamphey
    Member
    Posted 1 year ago #

    Hi, I'd like to have comments show up prominently in the static pages (e.g. About, etc.) of the site. The WordPress editor lets you click a box "allow comments", but the option to leave a comment doesn't actually seem to show up on the page. Is there any way to make the comment field and the received comments show up on the static pages (as opposed to just the blog posts)?

    Thanks.

  2. imaginocracy
    Member
    Posted 1 year ago #

    Hi Mamphey,

    Try putting this:

    <?php comments_template(); ?>

    Where you want the comment box to be in the page.php file.

  3. Mamphey
    Member
    Posted 1 year ago #

    would this modification be overwritten after an wordpress upgrade?

  4. Mamphey
    Member
    Posted 1 year ago #

    and is there a plugin that can do this?

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    would this modification be overwritten after an wordpress upgrade?

    not by a WordPress update, but by an update of your theme.

    and is there a plugin that can do this?

    unlikely - if the suggested code <?php comments_template(); ?> is not in page.php (or whatever template is responsible for showing static pages) then there is nothing for a plugin to hook into.

    what theme are you working with?
    does the theme have a page.php?

  6. Mamphey
    Member
    Posted 1 year ago #

    i am working to a real estate theme called - WP Pro Real Estate 4 Responsive WordPress Theme and yes it has a page.php file.

    thanks

    Sam

  7. imaginocracy
    Member
    Posted 1 year ago #

    Hi Sam,

    Page.php resides in your theme files. It would be overwritten from a theme update, not a WordPress update. You should create a child theme and edit it from there if your theme developer supplies updates for you.

  8. Mamphey
    Member
    Posted 1 year ago #

    ok thanks for your help. cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic