I’m trying to customize a couple of page templates in the Vantage Premium theme, so I’m following best practices and making those changes in a child theme. I looked up the WordPress Codex official instructions on how to create a child theme, and they explicitly state that relying entirely on a “style.css” with an “@import” command is no longer best practice.
So, following the WordPress Codex instructions, I created a “style.css” file and a “functions.php” file along with it. Here are the contents of the “functions.php” file. I believe I’ve added them correctly, following the WordPress instructions at “https://codex.wordpress.org/Child_Themes”:
Creating “Vantage” Child Theme with a new “functions.php” file
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Half of my question was cut off!
Here is the code written in my “functions.php” file for the child theme:
And the contents of my “style.css” file:
(Question continued)
When I load the child theme folder via FTP, I try to preview/activate it via the WordPress Dashboard. But I always get the following error message:
“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.”
What am I missing from my child theme for a correct installation?
Hi Joker6solitaire
Thanks for reaching out :)
If you’d like to give our Vantage starter theme a try, you can find it here:
https://siteorigin.com/wp-content/uploads/2015/03/vantage-child-starter.zip
This child theme works smoothly so far. Thank you for your help!
For sure :)