• Resolved courtneynutter

    (@courtneynutter)


    Help help help, please??

    I barely know what I’m doing with WordPress. I was nearly done with an entire site, but couldn’t get the navigation menu to show. So I looked up a support document that suggested I go to functions.php and enter:

    function register_my_menu() {
    register_nav_menu(‘header-menu’,__( ‘Header Menu’ ));
    }
    add_action( ‘init’, ‘register_my_menu’ );

    So I did. Then I refreshed the site preview and 99.9% of EVERYTHING is gone. What do I do? How do I undo this??? Please tell me I can!!

    https://www.gps-fl.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you login to your dashboard? If so, replace the entire content of the functions.php file from your unedited theme files. If you cannot login, via FTP/ cPanel delete the file and replace it with an unedited copy.

    Thread Starter courtneynutter

    (@courtneynutter)

    I can’t get into dashboard. I tried replacing functions.php in the host control panel… I can’t see the site at all now — Internal Error

    Download a new copy of your theme (or use a backup copy) and use FTP (or Cpanel) to access the files on your server – find the functions file in your theme folder and replace that file with a new copy.

    If you don’t know how to access your site files, ask your hosting company about that. Also see:

    https://codex.www.ads-software.com/FTP_Clients

    Thread Starter courtneynutter

    (@courtneynutter)

    I can get back into dashboard now. But I really messed up the theme when I tried inputing that register main menu nav function.

    The “Layers Theme” tab is no longer in the left-hand side menu. I tried uploading the theme again, but it says it’s already installed.

    Sorry for being so inexperienced, but I appreciate any advice!

    Yes, you’ll need to use FTP to access the site files – there’s no way to fix this kind of thing via the dashboard when it’s not working. Where is your site hosted? Do you have FTP or Cpanel access set up?

    Once you do, find the themes folder:

    wp-content
         themes
            layerstheme

    If replacing the file does not work, try renaming that folder:

    layersthemeHOLD

    That should let you login again.

    Thread Starter courtneynutter

    (@courtneynutter)

    I was able to replace the folder using ftp. Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Functions made site disappear’ is closed to new replies.