• Hi

    I messed up with function.php with my Divi theme. When I log on to my blog http://en-bike.com/intl/th/

    The screen appeared as following code.

    Parse error: syntax error, unexpected ‘Gallery’ (T_STRING) in /home/content/03/7388503/html/intl/th/wp-content/themes/Divi/epanel/post_thumbnails_divi.php on line 74

    I cannot now access to http://en-bike.com/intl/th/wp-admin
    I want to get back to my backend site again. Pls help!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Whatever changes you made in functions.php, you’ll need to revert them.

    Log into your site/server using FTP and download functions.php. Then undo/revert the last changes you made in it, save the file and upload it back.

    If you edited post_thumbnails_divi.php as well, do the same for that file.

    As added advice, never change theme files directly, but look into using a Child theme instead. That way it’s much easier to fix issues such as these.

    https://codex.ww.wp.xz.cn/Child_Themes

    Thread Starter ekaluk52003

    (@ekaluk52003)

    Hi Mark,
    Thanks a lot for your assistance. My problem is that I cannot log into my site (WP-Admin) meaning that I cannot revert my functions.php

    Do I need to access to wordpress server ? Sorry I ‘m not sure what you mean by Log into your site/server using FTP ?

    Thanks a lot,
    Ekaluk ( Mill )

    Yes, you’ll need FTP access to the server, so you can download/upload the files from/to the server. You’ll need to download a file to your computer, edit it, and then upload it back to the server.

    This is not the process of logging into your WordPress admin.

    If you don’t know the FTP servername, user and password, your webhost should be able to help you with that.

    Thread Starter ekaluk52003

    (@ekaluk52003)

    Hi mark , understand now. Thanks you so much. please have a nice day

    that is what the Codex says about FTP – http://codex.ww.wp.xz.cn/FTP_Clients

    Thread Starter ekaluk52003

    (@ekaluk52003)

    Hi Everyone. Just want to share that I finally resolved an issue.
    I replaced the file “post_thumbnails_divi.php” by using the FileZilla.
    I feel so great now.Thank everyone.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘messed up with function.php’ is closed to new replies.