This is an empty child theme to save time for new custom WordPress website designs. You can download this theme from this link
Code that will go into funtions.php file
<?php
add_action( 'wp_enqueue_scripts', 'remove_parent_add_custom', 20 );
function remove_parent_add_custom() {
wp_dequeue_style( 'parent-style' );
wp_deregister_style( 'twenty-twenty-one-style' );
wp_deregister_style( 'twenty-twenty-one-print-style' );
wp_dequeue_script( 'parent-style' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css' );
wp_enqueue_script( 'customjs', get_stylesheet_directory_uri() . '/assets/js/core.js', array( 'jquery' ), '', true);
}
Code that will go into style.css file
/*
Theme Name: Child Theme Name
Template: twentytwentyone
*/
Need a helping hand in fixing your website issues?
If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.
Hire Us