Child theme images not working - by darrencnz

This topic has 6 replies, 2 voices, and was last updated 9 years, 1 months ago ago by Robert Hall

  • Avatar: darrencnz
    darrencnz
    Participant
    September 29, 2015 at 04:22

    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?

    5 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 29, 2015 at 07:44

    Hello,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall.

    Avatar: darrencnz
    darrencnz
    Participant
    September 29, 2015 at 09:52

    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?

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 29, 2015 at 10:07

    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.

    Avatar: darrencnz
    darrencnz
    Participant
    September 29, 2015 at 10:18

    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.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 29, 2015 at 10:42

    Yes, you need add the code into the Child Theme also.

    Regards,
    Robert Hall.

  • Viewing 6 results - 1 through 6 (of 6 total)

The forum ‘TheLeader Support Forum’ is closed to new topics and replies.

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.