• Resolved Anonymous User

    (@anonymized-17859033)


    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.

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

    (@doublezed2)

    Hello freespirit2,

    Thank you for contacting WooCommerce support.

    I understand you’re seeing a color discrepancy in the header when viewing your site as an administrator with your Storefront child theme.

    Could you share a few screenshots of both the dashboard view and the incognito view?
    This will help me better understand the issue and compare the results to assist you further.

    Looking forward to your response. 🙂

    Thread Starter Anonymous User

    (@anonymized-17859033)

    Hi.
    Thanks in advance for your help.
    Images link: https://drive.google.com/drive/folders/1-_xKDD_wX_rPhhfyAY0ZrlynVWt7aWFb?usp=sharing
    It seems to me that the parent CSS is not loading in the correct sequence.

    Hello @freespirit2,

    Thank you for providing the screenshot.

    The issue might be caused by a caching plugin, as it appears, you have one enabled. Could you try disabling it to see if the problem persists?

    Thanks!

    Zee

    (@doublezed2)

    Hello freespirit2,

    Thank you for your reply.

    Could you share the site URL with me?
    I want to inspect the site from my end.

    Additionally, please check if there is any cache at play as Luigi suggested.

    Looking forward to your response. 🙂

    Thread Starter Anonymous User

    (@anonymized-17859033)

    Hi all. I disabled the cache plugin (SiteGround’s Speed ​​Optimizer) and the issue went away. I re-enabled it right after and it came back. After keeping it disabled for about 24 hours and then re-enabled, the issue is gone. Thank you both for the support. Thank you very much and have a nice day.

    Hi @freespirit2,

    I’m glad you were able to identify the issue! If you have a few minutes, we’d love if you could leave us a review.

    Cheers!

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

The topic ‘Storefront child theme – css anomaly’ is closed to new replies.