• Resolved vesthardt98

    (@vesthardt98)


    HELP!I am freaking out right now. I’ve just made my website and then I wanted to remove the top bar with what seemed to be “a simple line of code”. I added
    if (!current_user_can(‘edit_posts’)) {
    show_admin_bar(false);
    }
    to my functions.php file, from the Theme Editor in my browser, and now EVEYRTHING is broke. My website is all blank and I really don’t know what to do.

    I do not have any backups, nor acces to my website through FTP. Any way of “resetting” only that file? If it takes FTP acces I will try and gain it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Which theme are you using and what’s the URL to your site?

    Thread Starter vesthardt98

    (@vesthardt98)

    I decided to contact my hosting company so I could get acces to FTP. I did and just now I replaced the functions.php file with a new one that wasn’t edited in any way. I reloaded the site and it’s working like a charm. I think Jan for the reply, even though I fixed it myself.

    Cheers

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m glad you got it fixed. Fixing it yourself is the best way to learn. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I messed up my function.php file.’ is closed to new replies.