Why doesn't child theme image override parent theme image?
-
I have followed all the instructions and created a child theme for pilot-fish, with its own style.css file.
In this file I wrote:/*
Theme Name: Pilot Fish Child
Theme URI: https://mywebsite.com/pilot-fish-child/
Description: Pilot Fish Child Theme
Template: pilot-fish
Version: 1.0.0
Text Domain: pilot-fish-child
*/@import url(“../pilot-fish/style.css”);
/* =Theme customization starts here
————————————————————– */Then I activated pilot-fish-child.
I copied pilot-fish/home.php to pilot-fish-child/home.php and edited it, and the changes showed up okay.
I created a directory called ‘images’ in pilot-fish-child and uploaded a new home_banner.jpg which is exactly the same dimensions as the original home_banner.jpg.
I then went into pilot-fish-child/style.css and added, right under the dotted line, the following:/* Image styles */
/* Featured Content */
#featured {
background-attachment: fixed;
background-image: url(images/home_banner.jpg);
background-repeat: no-repeat;
background-position: center top;
height: 380px;
display: block;
text-align: center;
}
#featured p {
font-size: 18px;
font-weight: 200;
line-height: 27px;
padding: 0 40px 0 40px;
text-align:center;
}
#banner-text {
position: fixed;
text-align: center;
top: 380px;
}
.featured-title {
font-size: 60px;
color: #ffffff;
letter-spacing: -1px;
line-height: 1;
margin: 0;
text-shadow: 0 0 1px #3F544E;
}
.featured-subtitle {
text-align:center;
padding-top: 20px;
}But my new image does not show up in the pilot-fish-child theme. What have I missed?
- The topic ‘Why doesn't child theme image override parent theme image?’ is closed to new replies.