Warning: include(nectar/meta/meta-config.php) [function.include]: failed to open stream: No such file or directory in /home/content/18/9019618/html/v2014/wp-content/themes/salient/functions.php on line 4650

Warning: include() [function.include]: Failed opening 'nectar/meta/meta-config.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/18/9019618/html/v2014/wp-content/themes/salient/functions.php on line 4650
A Guide To WordPress Child Themes: Everything You Need...

A Guide To WordPress Child Themes: Everything You Need To Know

By April 11, 2015 Blog No Comments
A Guide To WordPress Child Themes: Everything You Need...

WordPress is famous for its customizability, and most of its users say they tweak and customize their themes. However, only a fraction of these users use child themes. And that’s perfectly okay: Not everyone needs a child theme. On the other hand, there are people who don’t use WordPress child themes because it feels overwhelming, confusing, or they simply haven’t even heard of them. If you’re thinking about using a child theme, or you’re curious about the benefits of using child themes, read on.

Why You Should Be Using WordPress Child Themes

WordPress child themes can save you tons of time and frustration down the road. Essentially, they allow you to make changes and customize source files without affecting the original theme’s code. You can add new color schemes, customize the CSS code or template files, and even modify the “functions.php” file. You can override specific styles without changing the parent theme’s CSS. Simply go to wp-content/themes/{theme}-child and customize style.css by copying specific styles from the parent style.css file into the child style.css file and customizing them, or adding new styles.

A Guide To WordPress Child Themes: Everything You Need...Buy Theme Open Demo

Many premium developers release theme updates on a regular basis to fix bugs and/or add new features. If you don’t use WordPress child themes, once you update the theme you bought, all your changes will be reset to the theme’s default settings, which means you’ll either have to do it all over again, or you’ll end up giving up.

Modifying The functions.php File

The functions.php file is where you’ll add and remove filters and actions used throughout the theme. The parent functions.php file is automatically loaded into the child theme, but if you want to add new functions, you can create another functions.php file within the child theme, write your new code, and the child functions will be loaded before and in addition to the parent functions. Just remember to wrap your new code with the php tags.

A Guide To WordPress Child Themes: Everything You Need...Buy Theme Open Demo

Modifying Other Template Files

While the parent theme’s functions are imported automatically, if you want to edit other template files within WordPress child themes, you will have to copy and paste the theme’s original file into your child theme folder and edit the template from there. Make sure the the file name and location are exactly the same. For example, if you want to modify the Ava/includes/contact.php, you should copy it to Ava-child/includes/contact.php. The original file will be ignored, and the child file will be used instead.

Leave a Reply