I am sure that you know the name of that particular file of theme..
locate the site via FTP, edit that file and remove the code you put!
I followed a site and it told me to
1. Open functions.php in your theme editor.
2. Add this line where you find appropriate:
add_post_type_support( ‘page’, ‘excerpt’ ); // Enable excerpts for pages.
and once I did that and clicked saved…BAM gone :/ I’m really freaking out over this I have no backup of the site and can’t lose it all.
Umm alright so when I type in the URL
http://www.gaming411.net/wp-content/themes/rapid/functions.php
It gives me the follow error:
Fatal error: Call to undefined function: remove_shortcode() in /homepages/33/d221537071/htdocs/gaming411/wp-content/themes/rapid/functions.php on line 107
BEFORE the error code was:
Fatal error: Call to undefined function: add_post_type_support() in /homepages/33/d221537071/htdocs/gaming411/wp-content/themes/rapid/functions.php on line 151
NOW IM REALLY CONFUSED!?!?!?
you don’t need to browse the function file but modify it by FTP or CONTROL PANEL’s FILE MANAGER of your hosting!
REMOVE That line of code.
So all I have to do is somehow get into the FTP or Control Panel of the site and remove that line of code which I put in?
The end result will me getting my site back?
Alright I’ll try to contact my brother in the morning because he is the host of my site.
Thanks for the help, I was planning to do something big with the site and wanted to make it look new and fancy. And that one line of code to completely ruin it like…I was sacred that I lost all of my work forever.
And thank you again for responding to my post. I’ve been here throwing a fit thinking its all gone down the shitter :/ I’m really hoping just removing that one line of code I added will bring it all back. The first thing I will do is make a backup of my site because for some reason I never did that.
We’ve all been through this before xD
Actually, if you added the code yourself, then you should be able to remove it the same way without having to wait for your brother. So if you pulled up the theme functions (functions.php) with the WordPress editor, try pulling it up there again and then Ctrl+F to search for “remove_shortcode” and/or “add_post_type_support” – remove the lines you inserted and check on the site again.
Note that it is possible to get stuck in a seemingly endless loop of errors, with every refresh returning a new error. I’ve been through that, too, so if that happens…don’t freak out π There’s pretty much a solution for everything.
I can’t get into my site what so ever. That’s why I was freaking out, I wanted to just go into http://Mysite.com/wp-admin but it gives me the same error.
I know the exact code I put in and it was all the way at the bottom of Functions.php. Then I clicked Save and DOOOOOM error code and I’m locked out :/
I’m hoping when my brother wakes up he can get into the ftp of my site and just delete the code because I really need my site back.
Ohhh, I get what you’re saying. Didn’t realize that you couldn’t even get to your dashboard, but you should have it under control now =)
Perhaps you can see about getting FTP access. If your brother hosts multiple accounts, then it may depend on whether he uses shared hosting or not. If you can get FTP access + an FTP client (like FileZilla) + a notepad (I prefer Notepad++), then you’re golden!
I have FileZilla installed but I just don’t know any FTP access stuff. My brother hosts multiple sites one of them being mine so I’m sure he has all that FTP stuff that I don’t. All I want to do at time point is get that stupid code out of the theme so I can access my site.
I was just worried that I lost my site forever or something. Kind of like a blue screen of death and I have no backup of my site. It also kind of serves as a portfolio for when I apply to jobs. I want to work as a Video Game Journalist and that is kind of my own starting point.
Awesome! Let us know how it goes.
My site is back up and running, thank you for the help :3
my website shows a fatal error..plse help
Fatal error: Cannot redeclare wassup_widget() (previously declared in /home/delhipas/public_html/wp-content/plugins/wassup/wassup.php:4281) in /home/delhipas/public_html/wp-content/plugins/wassup/wassup.php on line 4281