July 31, 2012 at 5:08 pm #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!!August 2, 2012 at 3:04 pm #85350
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.
MyaAugust 3, 2012 at 8:11 am #85351
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.
PeterAugust 5, 2012 at 11:21 pm #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!August 6, 2012 at 4:20 am #85353
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.
IsmaelAugust 6, 2012 at 6:16 pm #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!!!August 9, 2012 at 5:46 pm #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…
The topic ‘Abundance – functions.php – child theme – 500 Internal Server Error’ is closed to new replies.