If you like what you see, download this theme. Download Nuovo

How To’s

Setting up a Child Theme

When customizing a theme, the best practice is to create a child theme. This way, when you update the parent theme, all of your changes will still remain intact. Creating a child theme is very simple if you use the steps below.

  • Using your preferred FTP client, navigate to the “themes” directy inside the “wp-content” directory and create a directory titled “nuovo-child”.
  • Once there, create a style.css file and add the following lines of code in there and save.
    /*
    Theme Name: Nuovo Child
    Description: Child theme for Nuovo theme
    Author: <your name> 
    Template: nuovo
    */
  • Then create a functions.php file and add the following code and save.
    <?php function nuovo_child_theme_styles() {
            wp_2_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() . '/style.css' );
    }
    add_action( 'wp_2_enqueue_scripts', 'nuovo_child_theme_styles' ); ?>

Leave a Reply

Your email address will not be published. Required fields are marked *