A well crafted and easy to read font is a great asset for any website. It will catch the readers eye and it won’t tire them while they consume your content. There are many plugins that can help you add fonts to your WordPress site, but perhaps you want to avoid using them and prefer to do this the old fashioned way. It’s pretty easy, let’s take a look. Create the child theme Of course we will need a child theme, we’re going to base this guide on the WordPress Twenty-Seventeen default theme, so start by creating a folder called twentyseventeen-child, inside the folder create two files, the style.css and the functions.php ones, then paste the respective code into each one. When you are done you can go to Appearance > Themes in your dashboard and activate the new child theme. /* Theme Name: Twenty Seventeen Child Version: 1.0 Template: twentyseventeen License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html */ <?php // Place all your custom functions below this line. add_action( 'wp_enqueue_scripts', 'twentyseventeen_child_scripts' ); function twentyseventeen_child_scripts() { wp_enqueue_style( 'twentyseventeen-parent-style',
Share This