Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #14892

    I’ve created a child theme of Abundance and have successfully styled it, no problem whatsoever, but then when I added a functions.php file (along with copies of the necessary dependent files) I get a 500 Internal Server Error. At first I thought it was my local environment, but then checked it on a remote server with the same results. I’ve tried tweaking the functions file and I’ve added ‘$avia_config = true;’ but nothing seems to be working. Any thoughts? I’m getting a bit desperate at this point. Thanks so much for your help!!

    #85350

    Hi,

    I haven’t setup a child theme for Abundance so I’m not entirely sure what the problem could be. I’m going to tag the rest of the support team. I’m sure one of them has more in-depth knowledge.

    Regards,

    Mya

    #85351

    Hey!

    Afaik it’s not possible to overwrite framework files by using a child theme – ie the “necessary dependent files” must not be part of the framework folder.

    Regards,

    Peter

    #85352

    @Peter, thank you, I figured that about the dependent files, but saw online someone had suggested it. I was desperate so I went for it. Obviously it was a no go. That aside, the functions.php file (in the child theme) is still not working. Any thoughts on that? Thanks!

    #85353

    Hello,

    What did you add on the functions.php located on your child theme? You can go by without adding functions.php on the child theme unless it is something important.

    Regards,

    Ismael

    #85354

    @Ismael- Hi Ismael, thanks for your question. Yes, I do know that I don’t need to add it to the child theme, but there are functions located in the functions.php file which I would like to customize. Right now, if I copy the functions.php file as is (meaning I change no part of it) and paste it in my child theme it will break the site. So, it’s not even letting me try to change it. Any thoughts on why this would happen?

    Thank You!!!

    #85355

    Hey! This happens because the include paths of the framework folder change when you simply copy the child theme 1:1

    what exactly do you want to do? Most functions we are using are encapsulated within an if(function_exists) statement which allows you to simply define that one function in your child themes function.php file and the theme will then use this function istead of the parent theme function…

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Abundance – functions.php – child theme – 500 Internal Server Error’ is closed to new replies.