In case you want to modify Blocksy’s core files – we strongly recommend to install first and activate the Blocksy Child Theme – this way you will have the freedom to modify all files without the fear of breaking something in the parent theme.
You can download the child theme here and install it by following these steps:
- Head over to Appearance → Themes in your WordPress dashboard
- Click on Add New button and then on Upload Theme button
- Chose the
blocksy-child.zip
file you downloaded earlier and click on Install Now button - After the installation process is done, click on Activate button
Now that you have the child theme active, you can begin to add your custom css into the child theme style.css
file.
Loading style.css
file
Please note that by default the child doesn’t load the style.css
file located in the Child Theme. This is so because we don’t want to make a redundant request for people who don’t change this file. If you need this file to load anyway, please paste this piece of code in your child’s functions.php
file.
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_style('blocksy-child-style', get_stylesheet_uri());
});
Backwards compatibility
If you modify any PHP, JS or CSS files (other than the style.css
) via your Blocksy child theme you’ll be responsible for keeping them up to date when upgrading to newer versions of Blocksy parent theme.
For example, if you modify the single.php
via your child theme and update Blocksy – if that file has changed in the current release you could encounter errors on your site if you don’t update your child theme’s single.php
to include your changes.