Hello, I’m attempting to create an Illdy Child theme but I’m a bit confused about a couple of things.
I’ve successfully created the child theme and am able to apply the theme to my site. However, the ‘projects section’ in the child theme has spaces between the photos while the parent theme does not.
I’m wondering if it’s related to my next question. Right now, I’m calling the ‘css’ styles of the parent theme in a ‘functions.php’ file in the child theme.
In the parent theme, the css stylesheets are called with the:
@import 'layout/css/main.css';
@import 'layout/css/custom.min.css';
in the ‘style.css’ file.
I’m a bit confused on whether or not I need to call both of these stylesheets separately in my functions.php file. Right now, I just have the copy and pasted php function from the wp child themes tutorial:
<?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' );
}
?>
I guess I’m just wondering, do I just need this one function for the Illdy parent theme? And is this affecting the project photo gaps (if not, how can I fix this?)