This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

Resolved 2 replies premiumthemetheme-vantage
10 years ago · Last reply by D moe 10 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.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Greg Priday Staff 10 years, 6 months ago

    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. D moe 10 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread