Home>Support>I edited a line in Vantage Premium: Page Template (page.php) to disable all comments from pages but all pages are not working. Please help

I edited a line in Vantage Premium: Page Template (page.php) to disable all comments from pages but all pages are not working. Please help

By D moe, 9 years ago. Last reply by D moe, 9 years ago.

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?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 1 month ago Greg Priday
    Hi, I Work Here

    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/

  2. 9 years, 1 month ago D moe

    Hi Greg,

    Thanks. It works again. I do appreciate your help.

    Warm regards,
    D moe

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More