I edited a line in Vantage Premium: Page Template (page.php) to disable all comments from pages but all pages are not working. I tried to delete the line and updated the file then I can’t see any of my pages. All pages is showing with an error
Parse error: syntax error, unexpected T_ENDWHILE in /hermes/bosoraweb164/b1139/ipg.alphadotrading/mm/wp-content/themes/vantage/page.php on line 28
Could you guys please help?
Here is all codes from page.php right now. Did I accidentally deleted something else?
Hi D Moe
The best thing to do if you’re having a syntax error after editing a theme file is to reinstall a fresh copy of Vantage. If you log into your server’s FTP and navigate to wp-content/themes/ and rename the folder vantage to _vantage. Then download and install a fresh theme ZIP file from your original order email, and install the ZIP file by navigating to Appearance > Themes > Add New > Upload Theme in your WordPress admin.
To disable comments, you could use something like the following plugin. It’s much safer than editing theme files :)
https://wordpress.org/plugins/disable-comments/
Hi Greg,
Thanks. It works again. I do appreciate your help.
Warm regards,
D moe