Cart header switches to standard header after page reload of empty cart

This topic has 4 replies, 3 voices, and was last updated 6 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: kikjou
    Martin
    Participant
    January 17, 2025 at 17:11

    Hi,

    after a cart had been emptied completely and the page was then reloaded, the header switches from the simpler cart version to the full standard header.

    This causes a problem because a certain plugin is disabled on the cart page. Its shortcode is placed in a header html block. When the cart header switches to the main header, this shortcode itself becomes visible.

    The cart page is https://www.pflanzkompass.at/warenkorb/
    Add this product https://www.pflanzkompass.at/artikel/nepeta-grandiflora-zinsers-giant/
    go to the cart page, empty it and reload it.

    I would prefer if the cart loaded only one header, from a performance perspective.
    If this is not possible, removing the html block with css could be an alternative. cart page id is .page-id-1542

    Thank you
    Martin

    Cart header switches to standard header after page reload of empty cart

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 19, 2025 at 09:15

    Hello Martin,

    Thank you for reaching out to us and providing detailed information about the issue you are experiencing.

    This custom CSS code can be used:

    .woocommerce-cart .header-html_block4 {
        display: none;
    }

    Best regards,
    8Theme’s Team

    Avatar: kikjou
    Martin
    Participant
    January 20, 2025 at 16:40

    Hello Rose,
    thank you very much!

    Kind regards
    Martin

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    January 20, 2025 at 16:40

    Dear Martin,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Cart header switches to standard header after page reload of empty cart’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.