Storefront child theme – css anomaly
-
Hello everyone. I created a Storefront child theme, the folder is called “storefront-child” and inside there are two files “style.css” and “functions.php”.
The “style.css” file is currently empty there are only the two mandatory entries (“Theme Name: Storefront Child” and “Template: storefront”).
The “functions.php” file contains the following code:
<?php
function storefront_child_enqueue_styles() {
wp_enqueue_style( ‘storefront-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘storefront-child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( ‘storefront-style’ )
);
}
add_action( ‘wp_enqueue_scripts’, ‘storefront_child_enqueue_styles’ );The issue is this: if I am logged in as an administrator and I switch from the dashboard to the site view, the header does not respect the basic colors set in the customization area, while if I open a tab in incognito it respects them. (I have not looked at the other sections, but from a quick look, they seem fine) There is an anomaly, but I do not understand where it is. Any suggestions?
If I do the same operation with the parent theme everything is fine.
The topic ‘Storefront child theme – css anomaly’ is closed to new replies.
