Via FTP, reupload your theme.
This will wipe out ALL the changes you made to your theme. You should never edit theme files. You know why. 😉
Next, learn about child themes:
https://codex.wordpress.org/Child_Themes
http://techblog.kjodle.net/2014/04/12/wordpress-child-themes-the-whys-and-hows/
A child theme is the proper way to alter a WordPress theme.
as you’re new to wordpress an’d unless you’re a code guru try to avoid poking about in the functions.php file!
hi Jack and Kjodle
Thank you for your help. I am not sure what happened here, I ended up opening two seperate threads because I thought my internet had crashed and not loaded this one.
HOWEVER you guys are the lucky ones because the other version was a lot shorter and a whole let less eloquent 😉
I will take the advice to not mess with code in future, and actually, both sets of advice from you two completely mirrored the advice given on the secondary less-eloquent post.
Thank you for that.
Interestingly enough, I only attempted to mess with the function.php file because that is what the person had included in the “other notes” section of the plug in that I was trying to make work.
Is there no policing on the forums for advice which really doesn’t follow best practise?
I ask because obviously as a total newbie I find it scary I could blindly follow advice that might kill my site if done wrong/at all.
However, I do understand if the answer is “oh yeh, we’ll just moderate the ENTIRE wOrLd you silly foo'”
Also could someone advise regarding pasting code in to a forum? on my original message it says that it was removed as a result of forum rules, apologies, i didn’t realise that wasn’t allowed, how should one share it if not that way?
thanks in advance, and I will make the child theme links my evening reading tonight
to wordpress and beyonnnnnnnnnnd
Jx
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Is there no policing on the forums for advice which really doesn’t follow best practise?
No, the number of volunteers that help on the forums is scarce and so we don’t want to scare people away. If you notice some bad advice, you can reply nicely without trying to make that person feel bad. If they feel bad they’ll probably ignore the advice.
hi Andrew,
yep, makes sense, and as I am clearly going to need some help currently and in future, totally agree we can all be very grateful to everyone who puts in their time and effort to help!
as I am so new, I’m not sure I’ll run around telling people they gave me bad advice, but I will be chalking up the “never touch the functions code” for myself, and maybe as I get a little more versed I can share my wisdom!
thanks again,
Jenny
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
That’s cool, it’s not odd to find recommendations to edit PHP files on the forums. These aren’t exactly bad or wrong practices, things just get lost in translation if you’re reading someone else’s thread. People that are replying will tailor their advice to the technical knowledge of the person who created the thread.