This topic has 6 replies, 2 voices, and was last updated 9 years, 2 months ago ago by Robert Hall
Is there any reason that when i create a new folder in my child theme called “images” just like the main theme, why those images don’t show up, as soon as i put them in the main themes images folder they work straight away?
I have forced a refresh as well and still does it, kind of defeats the point in having child themes when this does not work…??
Any suggestions?
Hello,
Please provide us with wp-admin and FTP credentials in Private Content.
Regards,
Robert Hall.
I have provided details in private section. You can see that i have an image in the same location as the main theme (but inside the child theme) and it still displays the original icon-cart.png image and not the one i put in the images folder inside the child theme.
As soon as i put the image into the images folder of the main theme, it works perfectly, however this is no good as when i update the theme, it will overwrite all the images. Why is this not working in my child theme?
I’ve added this code in Child Theme. Please check it.
.shopping-cart-widget .cart-summ .items {
display: inline-block;
height: 44px;
background: url(images/icon-cart.png) no-repeat center left;
padding-left: 30px;
}
Regards,
Robert Hall.
Ok, so basically the images folder cant be replicated in the child theme and be automatically overwritten like the them folders then is that correct?
So if i want to do things like this in the future, i need to create a new CSS, and not just copy the images to a folder within the child theme?
That’s great, i just thought i would be able to move the new image into it’s new location and it would overwrite automtically.
Yes, you need add the code into the Child Theme also.
Regards,
Robert Hall.
The forum ‘TheLeader Support Forum’ is closed to new topics and replies.