Child theme not working
-
Hello,
I reviewed a lot of the forums about fixing the child theme but for some reason, I still cannot get my stylesheet to override parent theme.
Here’s the link to my site:
https://www.luciahsieh.ca/proj/bertulis-academic/I am using theme Less. And created a child theme folder.
Here’s the code for style.css:/* Theme Name: Less Child Theme URI: https://lessmade.com/themes/less/ Description: Less Child Theme Author: Lucia Hsieh Author URI: https://luciahsieh.ca Template: Less-master Version: 1.0.0 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: A super simple theme that can be customized using LESS variables Text Domain: Less-child */ @import url('https://fonts.googleapis.com/css?family=Merriweather|Montserrat'); /*Changing fonts*/ body, button, input, select, header #brand h1 { font-family: 'Montserrat', Arial, sans-serif; } h1,h2, h3, h4, h5, h6, pre { font-family: 'Merriweather', Georgia, serif; } h1 { display: none; }
Here’s for functions.php
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
What am I doing wrong?
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Child theme not working’ is closed to new replies.