Customizer color changes overriden in child theme

Hi,

I’m using a child theme for Sydney. I really love this theme and have used it for a long time.
However, with the new site I’m working on, all the changes I make via the Customizer appear saved but then revert to the parent theme’s colors upon refreshing the page. I’ve never experienced this problem before.

I have tried deactivating all plugins and removing cache. I don’t have any custom css.
If I customize the parent theme, this issue does not happen, so I believe I’m doing something incorrectly with the child theme.
I’m developing locally so I can’t provide a link to my site.

I’m quite new to this and I’d really appreciate your help. I’ve been looking to solve the issue online without success.

My functions.php file is the same as in the sample Sydney child theme:

<?php
add_action( 'wp_enqueue_scripts', 'sydney_child_enqueue' );
function sydney_child_enqueue() {
    
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

}

My style.css contains just the header:

/*
Theme Name: Sydney Child
Theme URI: http://athemes.com/theme/sydney
Author: aThemes
Author URI: http://athemes.com
Template: sydney
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sydney
*/

Thanks so much in advance for any tips!

Regards,
Silvia

Hello Silivia,

This happens because customizer’s settings are attributed to the active them when settings was made. As child theme is actually a different theme which is recognised by its folder name, so you’ve to do customizer export/impot.

Firstly try to do exporting the customizer settings when main theme is active. You can do that with this plugin. Then enable your child theme; re-visit the cusotmizer panel and import the settings. This procedure also works when upgrading to pro version as explained in this documentation: https://docs.athemes.com/article/111-upgrading-from-sydney-to-sydney-pro

Regards,
Kharis

Hello Kharis,

Thank you so much for your fast response!

I am actually not using any customizer settings from the parent theme. I just tested with the parent theme to try to troubleshoot my problem.

Is there a way to use the customizer directly on the Sydney child theme? I seem to remember I was able to do this with the Sydney theme last year I think.

Thanks so much in advance for your help!

Kind regards,
Silvia

There should be no problem with it. Please try again with disabled plugins (except the required ones).

Regards,
Kharis

Hi Kharis,

Like I mentioned, I tried disabling all plugins as well as removing any cache but nothing seems to solve the problem. :frowning:
For example, when I set the color of the footer for the child theme in the Customizer, it seems to get saved. However, upon refreshing the page, it reverts to the color of the parent Sydney theme.
Another example is the height of the header image (media). It always reverts to 300 px, regardless of what I input into the Customizer. So pretty much any setting in the Customizer just reverts to Sydney parent default.

Do you have any idea what could be causing this or how I can troubleshoot? Am I enqueuing the styles correctly in functions.php?

Thanks so much for all your help with looking into this! Really love this theme and would love to be able to continue using it.

Regards,
Silvia

Hello Silvia,

I don’t have any idea to suggest until you allow me to try it directly from your site’s admin area. Please send me a direct message along with admin’s username and password.

Regards,
Kharis