WordPress.org

Forums

Independent Publisher
[resolved] remove comments on pages (4 posts)

  1. cgfern
    Member
    Posted 11 months ago #

    Great theme!

    I'm having some trouble finding which piece of code I need to remove from page.php to disable any commenting on pages.

    I want to keep it for blog posts, but not pages.

  2. Raam Dev
    Member
    Theme Author

    Posted 11 months ago #

    Hello,

    Here's the block of code on page.php that you'd need to remove:

    https://github.com/raamdev/independent-publisher/blob/master/page.php#L23-L28

  3. afhaque
    Member
    Posted 7 months ago #

    Hi Raam.

    First off, fantastic theme.

    But just to follow up on the OP's question, how would I also remove the "Write a Comment" button as well. Looks like the solution you provided only hides the comments, but not the button itself.

  4. afhaque
    Member
    Posted 7 months ago #

Reply

You must log in to post.

About this Theme

About this Topic