Home Forums WoodMart support forum Empty Cart is showing without the heading

Empty Cart is showing without the heading

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #564397

    Fabio
    Participant

    Hello,
    When I empty my cart page, the page heading isn’t showing, but if I refresh the cart page it looks good.
    We looked it out and found out it’s the sticky header that’s causing this.

    Could you help us fix it?

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #564613

    Hung Pham
    Keymaster

    Hi Fabio,

    Thanks for reaching to us.

    Admin credential is incorrect, please check again.

    Regards,

    #564670

    Fabio
    Participant

    Hi,

    Here you have the correct info.

    Thank you.

    #564933

    Hung Pham
    Keymaster

    Hi Fabio,

    Thanks for details.

    First of all, I’m really sorry have taken long time to reply you due to the weekend.

    You are also using Custom Cart layout, which is built with WoodMart WooCommerce builder. Navigate to Layouts > Layout to edit Cart layout and add Page title widget https://prnt.sc/-Lgzd7O-HziH

    Further, you can read more about the Layout Builder here: https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/

    Regards,

    #565211

    Fabio
    Participant

    Hello,

    I have changed the widget to “page title”, but didn’t solved the problem…
    When I delete everything that it’s on my cart and it gets empty, the whole page title section disappears. And if I refresh that page, than it looks fine.

    I recorded a video so you can see what’s happening.

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #565378

    Hung Pham
    Keymaster

    Hi Fabio,

    Thanks for details.

    Please clear cache and check again https://prnt.sc/La8Grk6ThH72

    Regards,

    #565453

    Fabio
    Participant

    Hi,

    I’ve cleared the cache several times, but its still happening.
    (look at the attachment)

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #565711

    Hung Pham
    Keymaster

    Hi Fabio,

    To fix this issue, first try to add the following code snippet to the Child Theme functions.php file:

    add_action( 'woodmart_after_header', function () {
        if ( ! woodmart_woocommerce_installed() || ! is_cart() || ! XTS\Modules\Layouts\Main::get_instance()->has_custom_layout( 'cart' ) ) {
           return;
        }
    
        XTS\Modules\Layouts\Global_Data::get_instance()->set_data( 'builder', true );
    
        woodmart_page_title();
    
        remove_action( 'woodmart_after_header', 'woodmart_page_title', 10 );
    }, 1 );

    And second, add the following code snippet to the Custom CSS area in Theme Settings:

    .woocommerce-cart .main-page-wrapper > .page-title {
    	display: none;
    }
    
    .woocommerce-cart .main-page-wrapper:has(.wd-empty-page) > .page-title {
    	display: block;
    }

    Kind Regards

    #566229

    Fabio
    Participant

    Hello,

    That worked perfectly!
    Thank you so much for your help.

    #566359

    Hung Pham
    Keymaster

    Hi Fabio,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    If you have a quick minute we always appreciate a 5-star rating on our theme!

    https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492

    Your feedback is the motivation to improve our work and services.

    Regards,

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Empty Cart is showing without the heading’ is closed to new replies.