• bikesantpere

    (@bikesantpere)


    Hi there,
    I wanted to insert a code, but then deleted it again and didn’t save anything.

    But now the entire functions.php is suddenly empty and the homepage is completely down.

    Can someone please help me?

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

Viewing 1 replies (of 1 total)
  • Shahin

    (@skalanter)

    Hello @bikesantpere,

    Thank you for reaching out,

    By default, we don’t have any custom functionality in the default child theme: https://docs.oceanwp.org/article/90-sample-child-theme

    This is the original function.php file: https://github.com/oceanwp/oceanwp-child-theme/blob/master/functions.php

    If you can’t see any changes on the function.php file, it seems your host prevents writing and saving; please get in touch with your host provider and ask them to check all permissions on your website.

    Also, there can be some wrong code in the function.php file, which gets a fatal error. Please check the super administrator email to see the error or which plugins cause the issue. The error message will always be sent to the super administrator email in WordPress.

    There is another way to see the error: you need to turn on the WordPress debugger mode. To enable it, please follow the steps explained in this link: https://www.ads-software.com/documentation/article/debugging-in-wordpress/

    Another thing that can affect it is plugin conflicts, which can cause errors. To fix the issue, disable all plugins and turn them back on individually to identify the problematic ones. Update or remove the plugin as needed.

    Please note: Before the above steps, ensure you get a full backup from your website and child theme.

    I hope it helps.
    Best Regards

Viewing 1 replies (of 1 total)
  • The topic ‘functions.php completely empty’ is closed to new replies.