× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

WordPress child themes have very little required to get started

Aaron Overton
Jan 20, 2016
<p>The link to read all the detail is <a href="https://codex.wordpress.org/Child_Themes">here</a>.</p> <p>All you really need is the stylesheet.css with a header and a functions.php file with that will enqueue the parent theme's stylesheet.</p> <p>In the theme header shown in the documentation above, the only necessary lines are "Theme Name" and "Template". The first names your child theme and the second tells WordPress where to find the parent.</p> <p>The first block of PHP shown in the documentation is usually all that's necessary in the functions.php file and can be copy/pasted with no modification. (I would normally leave off the final ?&gt;, a PHP best practice that avoids accidental whitespace being sent as HTML - a longer topic for another day.)</p> <p> </p>
comments powered by Disqus