Follow up: I found my problem – when I was originally working on it, I must’ve deleted the code in the comments.php to get rid of the “leave a reply” box because that entire php is blank now.
Can I get help with replacing the code so that comments show up on posts (but not pages)
Removing code from theme files in order to disable comments for pages is not the way to go! You should restore the files from the original download.
To disable comments on all pages, go to Pages then select all with a checkbox at the top of the table. Then go to the top where it says „Bulk Actions” then click „edit” then apply go to „Comments” change it to „none” and then apply or save changes!
Some people experience an issue, when disabling comments doesn’t remove the comment form. It happens if you first create a page, save, and then decide to turn off comments. Try copying page content, then paste it to a new page AND disable comments right away, before you save.
I’m a complete novice trying to do expert work here, so please pardon my idiocy. How do I restore the files? Will I lose all the work I’ve done? I never set up a child theme.
Is there any way to copy/paste the comment code back in to the php so the boxes are restored and then move forward with disabling them on pages like you mentioned?
Eeeeeek. I’m sorry I butchered your beautiful theme!
I don’t know which files exactly did you edit and what did you remove so it’s hard to tell what to copy.
The comments form call is located in comments.php. So you could just swap this one file. Download fresh copy of the theme and upload comments.php to wp-content/themes/sugarspice
But either way you’re gonna need to make the switch to child theme, and it’s gonna be a pain if you don’t remember what exactly was edited.
the entire comments form comments.php is completely blank, so there’s no code in that box at all anymore which is why I was hoping I could just put the code back in there?
Thanks for your help
I’m not sure we’re on the same page here. What ‘box’ are you referring to? Are you editing theme files from WordPress dashboard?
Sorry – poor use of the word box. When I go to editor and select comments.php from the list on the right, there is no code there anymore. It is blank. I am hoping a simple fix is to get the code again so I can add it back there.
Ok. Download the theme, open comments.php on your computer, copy the contents and paste the whole thing to commnets.php in WordPress editor.
Thank you so much. I really appreciate your patience with me!