• 0
Sign in to follow this  
Followers 0

Fatal Error when attempted to add social media hook

Question

Posted · Report post

Hello, I'm very new to PlatformPro (and html and CSS). I was trying to add social media icons via my functions.php when I created a fatal error on my website. Now I can't even login to my Wordpress Admin and my site is down. Any ideas on how to fix the problem?

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted · Report post

First I think you need to remove the hook from "function.php" to take back control of your website. Then place the hook here so the developers can see what is wrong with it.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Okay. I fixed the problem by removing the hook from "function.php" after accessing it through my host. I think the problem is where I initially put the hook - at the bottom of the function.php file. Where should I be adding hooks?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Alaina, You will want to add your function above the sections area in the functions.php file. There is a line of code that reads function base_sections(){ Place your functions above this, although putting them below is not going to cause a problem either. If you receiving a fatal error it is most likely because your PHP syntax is incorrect. The error message should have given you a clue as to the problem but just make sure to create you function in the same form as the example in the functions.php file. Give it another shot and if you have another error, place post the error message as well as the PHP code you are using. Cheers, -Kyle

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0