Broke my site in functions.php
-
Hi!
I was trying to follow some steps to insert an adsense code in funcions.php here : https://acolita.com/insertar-adsense-dentro-entrada-pagina-wordpress/#comment-14143
and I might have done something wrong because now my page is down!
When I try to see what I could have done wrong, the guy was saying to write the code after a “endif”. I didnt’t find it so I wrote “endif” and pasted the adsense code after.
So I wrote exactly this in functions.php :
endif; function showads() { return '<div>I WROTE MY ADSENSE CODE HERE</div>'; } add_shortcode('adsense', 'showads');
Afterwards I saved and the page was down, so I came back to the previous page, deleted the code I wrote and saved again.
Do you know what I could do?
Thanks!
PS: I am a beginner in wordrpress so I don’t know how to code (I know, it was a bad idea…)
- The topic ‘Broke my site in functions.php’ is closed to new replies.