I’m using a child theme of cbox-theme, and I’ve been getting some strange behavior when I reload my theme. When I select a different theme in the dashboard, then select my child theme again, I get a white screen of death. Debug.log shows the error:
Call to undefined function infinity_get_header() in /path/to/my-theme/templates/homepage-template.php on line 11
I have a feeling that somehow my child theme is being loaded before cbox-theme or infinity, and thus PHP doesn’t yet have infinity_get_header or any other infinity functions, so it fails. How can I fix this?
@jreeve – Took a look at the MLA theme on Github and it appears the style.css is missing the header info letting WordPress know that the theme is a child of
Read the “Creating A Child Theme” section in this guide:
I’m guessing that when you’re using SASS to generate your CSS, it’s deleting the CSS header info. Perhaps you can create your custom CSS as a separately-named file and then use @import to include this generated CSS file in the main
Hopefully that should address your issues with the CBOX / Infinity theme not loading its files first.
@Ray, thanks! That solved the issue. It was just missing this header.
You must be logged in to reply to this topic.