• Hello folks. I set up a Child Theme for Storefront. But when I activated it, the images had disappeared, including the masthead/header image. All my Additional CSS also disappeared. So I reverted to the Parent theme and all was well.
    I sort of understand the Additional CSS disappearing (because the Child Theme is another theme). But why did the images go too?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • lisa

    (@contentiskey)

    how were the “missing images” originally added?

    Thread Starter mnatseah624

    (@mnatseah624)

    Hello Lisa,
    I’ve tried again. It’s the header image that concerns me most. I inserted it at Dashboard > Appearance > Customize > Header > Background image. But whenever I change to a different theme (Storefront Child, OceanWP) it disappears.
    Any idea why?

    lisa

    (@contentiskey)

    I find that changing themes often changes things set in the customize area.

    The customizer stores all the settings in wp_options. It can store the setting in a couple of different ways. For your theme to use the options it has to include some code that points to the customizer saved information. The Theme developer selects how the options will be saved and under what name.

    The information stays in the database even if you switch themes. But, unless the new theme uses the same name convention the information can’t be retrieved. Hopefully that make sense. Basically the new theme doesn’t know how to retrieve the information written by the old theme.

    Thread Starter mnatseah624

    (@mnatseah624)

    Thanks @mrtom414 That’s really helpful. But what is the Theme Developer, pls?
    And why is it that, if the Media Library is the same, and the name of the img file is the same, that it can’t be found?

    • This reply was modified 5 years, 7 months ago by mnatseah624.

    sorry my bad didn’t pay attention that this was a child theme . Did you modify any of the files in the child theme. Did you replace any code that looked like<?php get_theme_mod('<option>'); ?>. This code is usually how WordPress retrieves information from the customizer.

    If you modified the header file and deleted or changed any of these statements wordpress will not refer to the custormizer options.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Child Theme issues’ is closed to new replies.