• Old version of WordPress, I know I need to upgrade!
    Using the online editor /wp-admin/theme-editor.php
    I wanted to remove one mention of metadata, so I converted the concerned code into comment. Accidentally didn’t convert the exact right portion. Now the syntax error doesn’t even let me view the code in the editor to fix the problem. I don’t think the theme is the problem here, just, how do I get to edit my code and correct it?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi,

    This is syntax error. open function.php files in active themes go to line no 347.

    Might be you missed “}” include in PHP comment section or this is extra added.

    Please check it and remove it or comment it.. Hope it’s work for you.

    >> Access functions.php (FTP)
    -> With the FTP credentials (username and password) to connect to your FTP server (the host).
    -> Locate Functions.php by following the directory structure given below:
    -> [WordPress Root] > wp-content > Themes > [current_theme] > functions.php.
    -> Download the file and edit the file with the editor of your choice (by adding the required code).
    -> Upload the file to update the theme with changes made to the file.

    >> Access functions.php Through WordPress Admin
    -> Log in or sign in WordPress as administrator.
    -> Select “Appearance > Editor” from the sidebar.
    -> In the editor, select the theme which you want to edit from “Select theme to edit” drop-down menu.
    -> Locate and double-click “Themes Functions (functions.php)” under “Theme Files”, “Templates” section.
    -> Make the desired changes to the file and click “Update File” to reflect the changes made to the file.

    Hope it’s work for you.

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error, unable to view in editor’ is closed to new replies.