lisa
(@contentiskey)
how were the “missing images” originally added?
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.
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 6 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.